Skip to content

Commit

Permalink
Created cisco_xr_show_bgp_vrf_all_neighbors_advertised-routes.textfsm (
Browse files Browse the repository at this point in the history
…#1907)

Co-authored-by: Michael Bear <[email protected]>
  • Loading branch information
jorlandobr and mjbear authored Nov 27, 2024
1 parent d23821d commit d1f4cf7
Show file tree
Hide file tree
Showing 6 changed files with 1,032 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Value NETWORK (\d+\.\d+\.\d+\.\d+)
Value PREFIX_LENGTH (\d+)
Value NEXT_HOP (\d+\.\d+\.\d+\.\d+)
Value FROM ((\d+\.\d+\.\d+\.\d+)|\S+)
Value AS_PATH (.+)
Value Filldown ROUTE_DISTINGUISHER (\d+:\d+)
Value Filldown VRF (\S+)

Start
^\S{3}\s+\S{3}\s+\d{1,2}\s+\d+:\d+:\d+
^VRF:\s+\S+:\d+$$
^-+$$
^%\s+Neighbor\s+not\s+found$$
^Network\s+Next\s+Hop\s+From\s+AS\s+Path$$
^Route\s+Distinguisher:\s+${ROUTE_DISTINGUISHER}\s+\(default\s+for\s+vrf\s+${VRF}\)\s*$$ -> ROUTES
^. -> Error

ROUTES
^${NETWORK}\/${PREFIX_LENGTH}\s+${NEXT_HOP}\s+${FROM}\s+${AS_PATH}$$ -> Record
^\s*$$
^s*$$ -> Clearall
^Processed -> Start
^. -> Error

EOF

1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ cisco_xr_show_controllers_fabric_fia_errors_ingress_location.textfsm, .*, cisco_
cisco_xr_show_controllers_fabric_fia_drops_ingress_location.textfsm, .*, cisco_xr, sh[[ow]] contr[[ollers]] fabric fi[[a]] dr[[ops]] in[[gress]] loc[[ation]]
cisco_xr_show_controllers_fabric_fia_errors_egress_location.textfsm, .*, cisco_xr, sh[[ow]] contr[[ollers]] fabric fi[[a]] err[[ors]] eg[[ress]] loc[[ation]]
cisco_xr_show_controllers_fabric_fia_drops_egress_location.textfsm, .*, cisco_xr, sh[[ow]] contr[[ollers]] fabric fi[[a]] dr[[ops]] eg[[ress]] loc[[ation]]
cisco_xr_show_bgp_vrf_all_neighbors_advertised-routes.textfsm, .*, cisco_xr, sh[[ow]] bg[[p]] vr[[f]] (\S+) nei[[ghbors]](\s+\d+\.\d+\.\d+\.\d+)? advertised-r[[outes]]
cisco_xr_show_l2vpn_mac-learning_mac_all_location.textfsm, .*, cisco_xr, sh[[ow]] l2vpn mac-l[[earning]] mac all loc[[ation]]
cisco_xr_show_lpts_pifib_hardware_police_location.textfsm, .*, cisco_xr, sh[[ow]] lpts pifib hardware police loc[[ation]]
cisco_xr_show_controllers_HundredGigabitEthernet.textfsm, .*, cisco_xr, sh[[ow]] contr[[ollers]] Hu[[ndredGigabitEthernet]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
Sun Nov 17 19:47:39.864 BRA
Network Next Hop From AS Path
Route Distinguisher: 3222:9196 (default for vrf VRF_NAME:9196)
0.0.0.0/0 10.164.199.181 10.244.28.102 3222 65401i
10.0.0.16/29 10.164.199.181 10.244.28.102 3222 65401?
10.0.2.0/24 10.164.199.181 10.244.28.102 3222 65401?
10.0.3.0/24 10.164.199.181 10.244.28.102 3222 65401?
10.0.4.0/24 10.164.199.181 10.244.28.102 3222 65401?
10.0.5.0/24 10.164.199.181 10.164.200.10 3222 65401?
10.11.217.0/24 10.164.199.181 10.244.28.102 3222 65500i
10.11.247.0/27 10.164.199.181 10.244.28.102 3222 65500i
10.11.247.128/27 10.164.199.181 10.244.28.102 3222 65500i
10.19.247.128/27 10.164.199.181 10.244.28.104 3222 65502 65502 65502 65502 65502i
10.200.0.0/16 10.164.199.181 10.244.28.102 3222 65401?
10.235.0.0/16 10.164.199.181 10.244.28.102 3222 65401?
10.236.0.0/16 10.164.199.181 10.244.28.102 3222 65401?
10.238.0.0/16 10.164.199.181 10.244.28.102 3222 65401?
10.164.6.88/30 10.164.199.181 10.244.28.102 3222?
10.164.192.248/30 10.164.199.181 10.244.28.102 3222 65401?
10.164.192.252/30 10.164.199.181 10.244.28.102 3222?
10.164.193.0/30 10.164.199.181 10.244.28.102 3222?
10.164.193.4/30 10.164.199.181 Local 3222?
10.164.193.180/30 10.164.199.181 Local 3222?
10.164.194.196/30 10.164.199.181 10.244.28.102 3222?
10.164.194.224/30 10.164.199.181 10.244.28.102 3222?
10.164.195.24/30 10.164.199.181 Local 3222?
10.164.195.28/30 10.164.199.181 10.244.28.102 3222?
10.164.195.36/30 10.164.199.181 10.244.28.102 3222?
10.164.195.40/30 10.164.199.181 Local 3222?
10.164.195.44/30 10.164.199.181 10.244.28.102 3222?
10.164.195.68/30 10.164.199.181 10.244.28.102 3222?
10.164.195.72/30 10.164.199.181 Local 3222?
10.164.195.76/30 10.164.199.181 10.244.28.102 3222?
10.164.195.100/30 10.164.199.181 10.244.28.102 3222?
10.164.195.104/30 10.164.199.181 Local 3222?
10.164.195.108/30 10.164.199.181 10.244.28.102 3222?
10.164.200.124/30 10.164.199.181 Local 3222?
10.164.200.128/30 10.164.199.181 10.244.28.102 3222?
10.164.200.132/30 10.164.199.181 10.244.28.102 3222?
10.164.200.164/30 10.164.199.181 10.244.28.102 3222?
10.164.200.168/30 10.164.199.181 10.244.28.102 3222?
10.164.200.172/30 10.164.199.181 10.244.28.102 3222?
10.164.200.176/30 10.164.199.181 Local 3222?
10.164.200.180/30 10.164.199.181 10.244.28.102 3222?
10.164.200.184/30 10.164.199.181 10.244.28.102 3222?
10.164.201.28/30 10.164.199.181 Local 3222?
10.164.201.32/30 10.164.199.181 10.244.28.102 3222?
10.164.206.144/30 10.164.199.181 Local 3222?
10.164.207.72/30 10.164.199.181 10.244.28.102 3222?
10.164.207.80/30 10.164.199.181 Local 3222?
169.247.1.236/32 10.164.199.181 10.244.28.102 3222 65000 65022i
169.254.29.216/31 10.164.199.181 10.244.28.102 3222?
172.21.0.0/16 10.164.199.181 10.244.28.102 3222 65401?
172.197.1.0/24 10.164.199.181 10.244.28.102 3222 27652?
172.197.2.104/32 10.164.199.181 10.244.28.102 3222 27652 65510i
10.172.210.0/24 10.164.199.181 10.244.28.102 3222 65500 65500?
10.172.211.0/26 10.164.199.181 10.244.28.102 3222 65500 65500?
10.209.18.184/30 10.164.199.181 10.244.28.102 3222?
10.214.86.80/30 10.164.199.181 10.244.28.102 3222?
10.255.225.60/32 10.164.199.181 10.244.28.102 3222 65500 65500?

Processed 57 prefixes, 57 paths
Loading

0 comments on commit d1f4cf7

Please sign in to comment.