Debian Codegraph @

ntc_templates/templates/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm

raw
1 Value NEIGHBOR (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
2 Value VRF (\S+)
3 Value REMOTE_AS (\d+)
4 Value LOCAL_AS (\d+)
5 Value PEER_GROUP (\S+)
6 Value REMOTE_ROUTER_ID (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
7 Value BGP_STATE (\w+)
8 Value LOCALHOST_IP (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
9 Value LOCALHOST_PORT (\d+)
10 Value REMOTE_IP (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
11 Value REMOTE_PORT (\d+)
12 Value INBOUND_ROUTEMAP (\S+)
13 Value OUTBOUND_ROUTEMAP (\S+)
14
15 Start
16 # Capture first line, which shows the BGP neighor and remote AS number
17 ^BGP\s+neighbor\s+is -> Continue.Record
18 ^BGP\s+neighbor\s+is\s+${NEIGHBOR},\s+vrf\s+${VRF},\s+remote\s+AS\s+${REMOTE_AS},\s+local\s+AS\s+${LOCAL_AS}
19 # Capture BGP peer group
20 # Example: 'Member of peer-group RR_SERVERS for session parameters'
21 ^\s*Member\s+of\s+peer-group\s+${PEER_GROUP}
22 #
23 # Capture remote router ID
24 # Example: ' BGP version 4, remote router ID 10.10.255.14'
25 ^.+remote\s+router\s+ID\s+${REMOTE_ROUTER_ID}
26 #
27 # Capture BGP state
28 # Example: ' BGP state = Established, up for 7w3d'
29 ^\s+BGP\s+state\s+=\s+${BGP_STATE}
30 #
31 # Capture Inbound/Outbound Route Maps
32 # Example: 'Route map for incoming advertisements is BGP_Vendor_in'
33 # Example: 'Route map for outgoing advertisements is BGP_Vendor_out'
34 ^\s+Route\s+map\s+for\s+incoming\s+advertisements\s+is\s+${INBOUND_ROUTEMAP}
35 ^\s+Route\s+map\s+for\s+outgoing\s+advertisements\s+is\s+${OUTBOUND_ROUTEMAP}
36 #
37 # Match local host and port
38 # Example: 'Local host: 10.10.255.13, Local port: 39443'
39 ^Local\s+host:\s+${LOCALHOST_IP},\s+Local\s+port:\s+${LOCALHOST_PORT}
40 #
41 # Match foreign host and port
42 # Example: 'Foreign host: 10.10.255.14, Local port: 39443'
43 ^Foreign\s+host:\s+${REMOTE_IP},\s+Foreign\s+port:\s+${REMOTE_PORT}
44 #^.+ -> Error