-
Notifications
You must be signed in to change notification settings - Fork 786
hp_procurve_show_system: support VSF-stack standalone-line Serial Number #2309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
julmanglano
wants to merge
3
commits into
networktocode:master
Choose a base branch
from
julmanglano:pr/hp-procurve-show-system
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+121
−4
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
tests/hp_procurve/show_system/hp_procurve_show_system3.raw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| Status and Counters - General System Information | ||
|
|
||
| System Name : SWITCH-2 | ||
| System Contact : Network Operations Center (network-operations@example.c | ||
| om) location Building-3 Datacenter-Aisle-12 Rack-04 ABC | ||
| -ACCS1 | ||
| System Location : Building-3 Datacenter-Aisle-12 | ||
| MAC Age Time (sec) : 300 | ||
| Time Zone : 0 | ||
| Daylight Time Rule : None | ||
|
|
||
| Software revision : WC.16.10.0014 | ||
| Base MAC Addr : 548028-aabbd0 | ||
|
|
||
| VSF-Member :1 | ||
|
|
||
| ROM Version : WC.16.01.0008 | ||
| Up Time : 458 days | ||
| CPU Util (%) : 5 | ||
| MAC Addr : 548028-aabbd1 | ||
| Serial Number : SN0000003A | ||
| Memory - Total : 338,285,056 | ||
| Free : 216,978,364 | ||
|
|
||
|
|
||
|
|
||
| VSF-Member :2 | ||
|
|
||
| ROM Version : WC.16.01.0008 | ||
| Up Time : 458 days | ||
| CPU Util (%) : 25 | ||
| MAC Addr : 548028-aabbd2 | ||
| Serial Number : SN0000004A | ||
| Memory - Total : 338,285,056 | ||
| Free : 233,762,648 | ||
|
|
||
|
|
||
|
|
||
| VSF-Member :3 | ||
|
|
||
| ROM Version : WC.16.01.0008 | ||
| Up Time : 458 days | ||
| CPU Util (%) : 0 | ||
| MAC Addr : 548028-aabbd3 | ||
| Serial Number : SN0000005A | ||
| Memory - Total : 338,285,056 | ||
| Free : 247,712,468 |
68 changes: 68 additions & 0 deletions
68
tests/hp_procurve/show_system/hp_procurve_show_system3.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| --- | ||
| parsed_sample: | ||
| - allow_mods: "" | ||
| buffers_free: "" | ||
| buffers_lowest: "" | ||
| buffers_missed: "" | ||
| contact: "Network Operations Center (network-operations@example.c" | ||
| cpu_util: "5" | ||
| daylight_rule: "None" | ||
| location: "Building-3 Datacenter-Aisle-12" | ||
| mac_address: "548028-aabbd1" | ||
| mac_age: "300" | ||
| mem_free: "216,978,364" | ||
| mem_tot: "338,285,056" | ||
| member_id: "1" | ||
| name: "SWITCH-2" | ||
| packets_rx: "" | ||
| packets_tot: "" | ||
| packets_tx: "" | ||
| rom_version: "WC.16.01.0008" | ||
| serial: "SN0000003A" | ||
| software_version: "WC.16.10.0014" | ||
| timezone: "0" | ||
| uptime: "458 days" | ||
| - allow_mods: "" | ||
| buffers_free: "" | ||
| buffers_lowest: "" | ||
| buffers_missed: "" | ||
| contact: "Network Operations Center (network-operations@example.c" | ||
| cpu_util: "25" | ||
| daylight_rule: "None" | ||
| location: "Building-3 Datacenter-Aisle-12" | ||
| mac_address: "548028-aabbd2" | ||
| mac_age: "300" | ||
| mem_free: "233,762,648" | ||
| mem_tot: "338,285,056" | ||
| member_id: "2" | ||
| name: "SWITCH-2" | ||
| packets_rx: "" | ||
| packets_tot: "" | ||
| packets_tx: "" | ||
| rom_version: "WC.16.01.0008" | ||
| serial: "SN0000004A" | ||
| software_version: "WC.16.10.0014" | ||
| timezone: "0" | ||
| uptime: "458 days" | ||
| - allow_mods: "" | ||
| buffers_free: "" | ||
| buffers_lowest: "" | ||
| buffers_missed: "" | ||
| contact: "Network Operations Center (network-operations@example.c" | ||
| cpu_util: "0" | ||
| daylight_rule: "None" | ||
| location: "Building-3 Datacenter-Aisle-12" | ||
| mac_address: "548028-aabbd3" | ||
| mac_age: "300" | ||
| mem_free: "247,712,468" | ||
| mem_tot: "338,285,056" | ||
| member_id: "3" | ||
| name: "SWITCH-2" | ||
| packets_rx: "" | ||
| packets_tot: "" | ||
| packets_tx: "" | ||
| rom_version: "WC.16.01.0008" | ||
| serial: "SN0000005A" | ||
| software_version: "WC.16.10.0014" | ||
| timezone: "0" | ||
| uptime: "458 days" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, putting the location in the contact field (which is in the location field) is redundant. In my eyes these are self-induced problems.
From the test data, I see why you have this regex. The trade-off and risk is that this will match most lines.⚠️
@julmanglano Is there a legitimate reason why the location is also in the System Contact?
I'll ping other maintainers for some feedback.
One item that comes to my mind is to state transition for
System Contactand cover it andSystem Locationwith this loose regex. Once those two are handled in that new state, then state transition back to Start state. This way we should reduce the risk of over-matching lines because of this Contact/Location stuff.