Skip to content
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
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
^\s*Interface
^\s*Interface\s+IP-Address\s+Vrf\s+Status\s+Protocol\s*$$

We want to capture all of the headers to make sure the data is what fields we are expecting

^==================
^${INTERFACE}\s+${IP_ADDRESS}\s+${VRF}\s+${STATUS}\s+${PROTOCOL} -> Record
^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ extreme_exos_show_ipconfig.textfsm, .*, extreme_exos, show ipconfig
extreme_exos_show_sharing.textfsm, .*, extreme_exos, show sharing
extreme_exos_show_iparp.textfsm, .*, extreme_exos, show iparp

extreme_slxos_show_ip_interface_brief.textfsm, .*, extreme_slxos, sh[[ow]] ip int[[erface]] br[[ief]]
extreme_slxos_show_clock.textfsm, .*, extreme_slxos, show clock

fortinet_diagnose_lldprx_port_neighbor_details_port-name.textfsm, .*, fortinet, d[[iagnose]] lldpr[[x]] p[[ort]] n[[eighbor]] d[[etails]] (\S+)
Expand Down
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
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"
Loading