-
Notifications
You must be signed in to change notification settings - Fork 721
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
Feature/extreme slxos show ip interface brief #1879
Open
lucagubler
wants to merge
2
commits into
networktocode:master
Choose a base branch
from
lucagubler:feature/extreme-slxos-show-ip-interface-brief
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.
+157
−0
Open
Changes from all commits
Commits
Show all changes
2 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
13 changes: 13 additions & 0 deletions
13
ntc_templates/templates/extreme_slxos_show_ip_interface_brief.textfsm
This file contains 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,13 @@ | ||
Value INTERFACE ((Port-channel|Loopback|Ethernet|Ve) \d+(?:/\d+)?(?:\s*\(I\))?) | ||
Value IP_ADDRESS (\S+) | ||
Value VRF (\S+) | ||
Value STATUS (\S+\s?\S+) | ||
Value PROTOCOL (\S+) | ||
|
||
Start | ||
^\s*Flags | ||
^\s*Interface | ||
^================== | ||
^${INTERFACE}\s+${IP_ADDRESS}\s+${VRF}\s+${STATUS}\s+${PROTOCOL} -> Record | ||
^\s*$$ | ||
^. -> Error |
This file contains 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
26 changes: 26 additions & 0 deletions
26
tests/extreme_slxos/show_ip_interface_brief/extreme_slxos_show_ip_interface_brief_data.raw
This file contains 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,26 @@ | ||
Flags: I - Insight Enabled U - Unnumbered interface | ||
Interface IP-Address Vrf Status Protocol | ||
================== ========== ======================================== ==================== ======== | ||
Port-channel 7 unassigned default-vrf up up | ||
Port-channel 22 unassigned default-vrf up up | ||
Port-channel 250(I) unassigned default-vrf up up | ||
Loopback 1 172.16.128.1 default-vrf up up | ||
Loopback 61 185.206.188.1 default-vrf up up | ||
Loopback 62 185.209.116.1 default-vrf up up | ||
Ethernet 0/1 172.16.128.44 default-vrf up up | ||
Ethernet 0/2 unassigned default-vrf up up | ||
Ethernet 0/8 unassigned default-vrf administratively down down | ||
Ethernet 0/14 unassigned default-vrf administratively down down | ||
Ethernet 0/15 172.16.128.34 default-vrf up up | ||
Ethernet 0/125 unassigned default-vrf up up | ||
Ve 4 10.17.17.1 MGMT up up | ||
Ve 10 10.8.0.2 MGMT up up | ||
Ve 11 10.8.1.1 MGMT up up | ||
Ve 535 10.11.80.2 DEMO-VLT-LAB-01 up up | ||
Ve 543 10.11.81.2 DEMO-VLT-LAB-01 up up | ||
Ve 544 10.11.82.2 DEMO-VLT-LAB-02 up up | ||
Ve 545 10.11.83.2 DEMO-VLT-LAB-02 up up | ||
Ve 546 10.11.84.2 DEMO-VLT-LAB-02 up up | ||
Ve 547 10.11.85.2 DEMO-VLT-LAB-02 up up | ||
Ve 548 172.16.0.2 DEMO-VLT-LAB-01 up up | ||
Ve 734 10.224.8.137 ABC-PUBLIC-LEGACY administratively down down |
117 changes: 117 additions & 0 deletions
117
tests/extreme_slxos/show_ip_interface_brief/extreme_slxos_show_ip_interface_brief_data.yml
This file contains 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,117 @@ | ||
--- | ||
parsed_sample: | ||
- interface: "Port-channel 7" | ||
ip_address: "unassigned" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "default-vrf" | ||
- interface: "Port-channel 22" | ||
ip_address: "unassigned" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "default-vrf" | ||
- interface: "Port-channel 250(I)" | ||
ip_address: "unassigned" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "default-vrf" | ||
- interface: "Loopback 1" | ||
ip_address: "172.16.128.1" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "default-vrf" | ||
- interface: "Loopback 61" | ||
ip_address: "185.206.188.1" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "default-vrf" | ||
- interface: "Loopback 62" | ||
ip_address: "185.209.116.1" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "default-vrf" | ||
- interface: "Ethernet 0/1" | ||
ip_address: "172.16.128.44" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "default-vrf" | ||
- interface: "Ethernet 0/2" | ||
ip_address: "unassigned" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "default-vrf" | ||
- interface: "Ethernet 0/8" | ||
ip_address: "unassigned" | ||
protocol: "down" | ||
status: "administratively down" | ||
vrf: "default-vrf" | ||
- interface: "Ethernet 0/14" | ||
ip_address: "unassigned" | ||
protocol: "down" | ||
status: "administratively down" | ||
vrf: "default-vrf" | ||
- interface: "Ethernet 0/15" | ||
ip_address: "172.16.128.34" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "default-vrf" | ||
- interface: "Ethernet 0/125" | ||
ip_address: "unassigned" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "default-vrf" | ||
- interface: "Ve 4" | ||
ip_address: "10.17.17.1" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "MGMT" | ||
- interface: "Ve 10" | ||
ip_address: "10.8.0.2" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "MGMT" | ||
- interface: "Ve 11" | ||
ip_address: "10.8.1.1" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "MGMT" | ||
- interface: "Ve 535" | ||
ip_address: "10.11.80.2" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "DEMO-VLT-LAB-01" | ||
- interface: "Ve 543" | ||
ip_address: "10.11.81.2" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "DEMO-VLT-LAB-01" | ||
- interface: "Ve 544" | ||
ip_address: "10.11.82.2" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "DEMO-VLT-LAB-02" | ||
- interface: "Ve 545" | ||
ip_address: "10.11.83.2" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "DEMO-VLT-LAB-02" | ||
- interface: "Ve 546" | ||
ip_address: "10.11.84.2" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "DEMO-VLT-LAB-02" | ||
- interface: "Ve 547" | ||
ip_address: "10.11.85.2" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "DEMO-VLT-LAB-02" | ||
- interface: "Ve 548" | ||
ip_address: "172.16.0.2" | ||
protocol: "up" | ||
status: "up" | ||
vrf: "DEMO-VLT-LAB-01" | ||
- interface: "Ve 734" | ||
ip_address: "10.224.8.137" | ||
protocol: "down" | ||
status: "administratively down" | ||
vrf: "ABC-PUBLIC-LEGACY" |
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.
We want to capture all of the headers to make sure the data is what fields we are expecting