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

Updated support for Cisco NXOS devices #1175

Merged
merged 4 commits into from
Apr 14, 2023
Merged
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,14 @@
Value Filldown VRF (\S+)
Value Required GROUP_RANGE (\d+\.\d+\.\d+\.\d+/\d+)
Value ACTION (\S+)
Value MODE (\S+)
Value RP_ADDRESS (\S+)
Value SHARED_TREE_RANGE (\S+)
Value ORIGIN (\S+)


Start
^\s*PIM Group-Range Configuration for VRF "${VRF}"\s*$$
^\s*Group-range\s+Action\s+Mode\s+RP-address\s+Shrd-tree-range\s+Origin\s*$$
^\s*${GROUP_RANGE}\s+${ACTION}\s+${MODE}\s+${RP_ADDRESS}\s+${SHARED_TREE_RANGE}\s+${ORIGIN}\s*$$ -> Record
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Value Filldown VRF (\S+)
Value Required INTERFACE ([\w\./-]+)
Value IP_ADDRESS (\d+\.\d+\.\d+\.\d+)
Value PIM_DR_ADDRESS (\d+\.\d+\.\d+\.\d+)
Value NEIGHBOR_COUNT (\d+)
Value BORDER_INTERFACE (\S+)

Start
^\s*PIM Interface Status for VRF "${VRF}"\s*$$
^\s*Interface\s+IP Address\s+PIM DR Address\s+Neighbor\s+Border\s*$$
^\s*Count\s+Interface\s*$$
^\s*${INTERFACE}\s+${IP_ADDRESS}\s+${PIM_DR_ADDRESS}\s+${NEIGHBOR_COUNT}\s+${BORDER_INTERFACE}\s*$$ -> Record
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Value Filldown VRF (\S+)
Value Required NEIGHBOR (\d+\.\d+\.\d+\.\d+)
Value INTERFACE ([\w\./-]+)
Value UPTIME (\S+)
Value EXPIRES (\S+)
Value DR_PRIORITY (\d+)
Value BIDIR_CAPABLE (\S+)
Value BFD_STATE (\S+)
Value ECMP_REDIRECT_CAPABLE (\S+)


Start
^\s*PIM Neighbor Status for VRF "${VRF}"\s*$$
^\s*Neighbor\s+Interface\s+Uptime\s+Expires\s+DR\s+Bidir-\s+BFD\s+ECMP Redirect\s*$$
^\s*Priority\s+Capable\s+State\s+Capable\s*$$
^\s*${NEIGHBOR}\s+${INTERFACE}\s+${UPTIME}\s+${EXPIRES}\s+${DR_PRIORITY}\s+${BIDIR_CAPABLE}\s+${BFD_STATE}\s+${ECMP_REDIRECT_CAPABLE}\s*$$ -> Record
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Value VRF (\S+)
Value BSR (\S+)
Value AUTO_RP (\S+)
Value BSR_CANDIDATE_POLICY (\S+)
Value BSR_POLICY (\S+)
Value AUTO_RP_ANNOUNCE_POLICY (\S+)
Value AUTO_RP_DISCOVERY_POLICY (\S+)

Start
^\s*PIM RP Status Information for VRF "${VRF}"\s*$$
^\s*BSR ${BSR}\s*$$
^\s*Auto-RP ${AUTO_RP}\s*$$
^\s*BSR RP Candidate policy: ${BSR_CANDIDATE_POLICY}\s*$$
^\s*BSR RP policy: ${BSR_POLICY}\s*$$
^\s*Auto-RP Announce policy: ${AUTO_RP_ANNOUNCE_POLICY}\s*$$
^\s*Auto-RP Discovery policy: ${AUTO_RP_DISCOVERY_POLICY}\s*$$ -> Record
^. -> Error
4 changes: 4 additions & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,14 @@ cisco_ios_ping.textfsm, .*, cisco_ios, ping
cisco_ios_dir.textfsm, .*, cisco_ios, dir

cisco_nxos_show_l2rib_internal_permanently-frozen-list.textfsm, .*, cisco_nxos, sh[[ow]] l2ri[[b]] i[[nternal]] pe[[rmanently-frozen-list]]
cisco_nxos_show_ip_pim_interface_brief_vrf_all.textfsm, .*, cisco_nxos, sh[[ow]] ip pim int[[erface]] br[[ief]] vrf all
cisco_nxos_show_configuration_session_summary.textfsm, .*, cisco_nxos, sh[[ow]] configu[[ration]] s[[ession]] su[[mmary]]
cisco_nxos_show_interface_transceiver_details.textfsm, .*, cisco_nxos, sh[[ow]] int[[erface]] tra[[nsceiver]] de[[tails]]
cisco_nxos_show_ip_dhcp_snooping_statistics.textfsm, .*, cisco_nxos, sh[[ow]] ip dh[[cp]] sn[[ooping]] st[[atistics]]
cisco_nxos_show_ip_pim_group-range_vrf_all.textfsm, .*, cisco_nxos, sh[[ow]] ip pim group[[-range]] vrf all
cisco_nxos_show_environment_temperature.textfsm, .*, cisco_nxos, sh[[ow]] env[[ironment]] t[[emperature]]
cisco_nxos_show_ip_ospf_interface_brief.textfsm, .*, cisco_nxos, sh[[ow]] ip ospf int[[erface]] b[[rief]](?: vrf \S+)?\s*$
cisco_nxos_show_ip_pim_neighbor_vrf_all.textfsm, .*, cisco_nxos, sh[[ow]] ip pim nei[[ghbor]] vrf all
cisco_nxos_show_forwarding_ipv4_route.textfsm, .*, cisco_nxos, sh[[ow]] fo[[rwarding]] ipv4 ro[[ute]]
cisco_nxos_show_interface_description.textfsm, .*, cisco_nxos, sh[[ow]] int[[erface]] desc[[ription]]
cisco_nxos_show_interface_transceiver.textfsm, .*, cisco_nxos, sh[[ow]] int[[erface]] tra[[nsceiver]]
Expand All @@ -326,6 +329,7 @@ cisco_nxos_show_ip_bgp_summary_vrf.textfsm, .*, cisco_nxos, sh[[ow]] ip b[[gp]]
cisco_nxos_show_ip_interface_brief.textfsm, .*, cisco_nxos, sh[[ow]] ip int[[erface]] b[[rief]](?: vrf \S+)?\s*$
cisco_nxos_show_cts_interface_all.textfsm, .*, cisco_nxos, sh[[ow]] ct[[s]] inter[[face]] al[[l]]
cisco_nxos_show_ip_community-list.textfsm, .*, cisco_nxos, sh[[ow]] ip comm[[unity-list]]
cisco_nxos_show_ip_pim_rp_vrf_all.textfsm, .*, cisco_nxos, sh[[ow]] ip pim rp vrf all
cisco_nxos_show_mac_address-table.textfsm, .*, cisco_nxos, sh[[ow]] m[[ac]] addr[[ess-table]]
cisco_nxos_show_interface_status.textfsm, .*, cisco_nxos, sh[[ow]] int[[erface]] st[[atus]]
cisco_nxos_show_ip_bgp_neighbors.textfsm, .*, cisco_nxos, sh[[ow]] ip bgp nei[[ghbors]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PIM Group-Range Configuration for VRF "default"
Group-range Action Mode RP-address Shrd-tree-range Origin
224.0.0.0/8 Accept SSM - - Local

PIM Group-Range Configuration for VRF "red"
Group-range Action Mode RP-address Shrd-tree-range Origin
224.0.0.0/8 Accept SSM - - Local

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
parsed_sample:
- vrf: "default"
group_range: "224.0.0.0/8"
action: "Accept"
mode: "SSM"
rp_address: "-"
shared_tree_range: "-"
origin: "Local"
- vrf: "red"
group_range: "224.0.0.0/8"
action: "Accept"
mode: "SSM"
rp_address: "-"
shared_tree_range: "-"
origin: "Local"
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PIM Interface Status for VRF "default"
Interface IP Address PIM DR Address Neighbor Border
Count Interface
Vlan100 192.0.2.1 192.0.2.2 0 no
Ethernet1/1.10 192.0.2.3 192.0.2.4 1 no

PIM Interface Status for VRF "red"
Interface IP Address PIM DR Address Neighbor Border
Count Interface
Ethernet1/1.20 192.0.2.5 192.0.2.6 1 no

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
parsed_sample:
- vrf: "default"
interface: "Vlan100"
ip_address: "192.0.2.1"
pim_dr_address: "192.0.2.2"
neighbor_count: "0"
border_interface: "no"
- vrf: "default"
interface: "Ethernet1/1.10"
ip_address: "192.0.2.3"
pim_dr_address: "192.0.2.4"
neighbor_count: "1"
border_interface: "no"
- vrf: "red"
interface: "Ethernet1/1.20"
ip_address: "192.0.2.5"
pim_dr_address: "192.0.2.6"
neighbor_count: "1"
border_interface: "no"
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PIM Neighbor Status for VRF "default"
Neighbor Interface Uptime Expires DR Bidir- BFD ECMP Redirect
Priority Capable State Capable
192.0.2.2 Ethernet1/1.10 1w1d 00:01:17 1 no n/a no

PIM Neighbor Status for VRF "red"
Neighbor Interface Uptime Expires DR Bidir- BFD ECMP Redirect
Priority Capable State Capable
192.0.2.3 Ethernet1/1.20 1w1d 00:01:33 1 no n/a no

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
parsed_sample:
- vrf: "default"
neighbor: "192.0.2.2"
interface: "Ethernet1/1.10"
uptime: "1w1d"
expires: "00:01:17"
dr_priority: "1"
bidir_capable: "no"
bfd_state: "n/a"
ecmp_redirect_capable: "no"
- vrf: "red"
neighbor: "192.0.2.3"
interface: "Ethernet1/1.20"
uptime: "1w1d"
expires: "00:01:33"
dr_priority: "1"
bidir_capable: "no"
bfd_state: "n/a"
ecmp_redirect_capable: "no"
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
PIM RP Status Information for VRF "default"
BSR disabled
Auto-RP disabled
BSR RP Candidate policy: None
BSR RP policy: None
Auto-RP Announce policy: None
Auto-RP Discovery policy: None


PIM RP Status Information for VRF "red"
BSR disabled
Auto-RP disabled
BSR RP Candidate policy: None
BSR RP policy: None
Auto-RP Announce policy: None
Auto-RP Discovery policy: None


Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
parsed_sample:
- vrf: "default"
bsr: "disabled"
auto_rp: "disabled"
bsr_candidate_policy: "None"
bsr_policy: "None"
auto_rp_announce_policy: "None"
auto_rp_discovery_policy: "None"
- vrf: "red"
bsr: "disabled"
auto_rp: "disabled"
bsr_candidate_policy: "None"
bsr_policy: "None"
auto_rp_announce_policy: "None"
auto_rp_discovery_policy: "None"