Skip to content

Commit 9227a8c

Browse files
authored
Add paloalto_panos_show_routing_protocol_bgp_summary (#2200)
1 parent 21022f5 commit 9227a8c

File tree

4 files changed

+117
-0
lines changed

4 files changed

+117
-0
lines changed

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ oneaccess_oneos_show_sntp.textfsm, .*, oneaccess_oneos, sh[[ow]] sntp
926926
oneaccess_oneos_hostname.textfsm, .*, oneaccess_oneos, hostname
927927
oneaccess_oneos_ls.textfsm, .*, oneaccess_oneos, ls( -[lh][lh]? )?.*
928928

929+
paloalto_panos_show_routing_protocol_bgp_summary.textfsm, .*, paloalto_panos, sh[[ow]] ro[[uting]] pr[[otocol]] b[[gp]] s[[ummary]]
929930
paloalto_panos_show_running_security-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] security[[-policy]]
930931
paloalto_panos_show_high-availability_all.textfsm, .*, paloalto_panos, sh[[ow]] high[[-availability]] all
931932
paloalto_panos_test_security-policy-match.textfsm, .*, paloalto_panos, test security-policy-match.*
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Value Filldown ROUTER_ID (\S+)
2+
Value Filldown VIRTUAL_ROUTER (\S+)
3+
Value Filldown LOCAL_AS (\d+)
4+
Value Filldown NEIGHBOR_NAME ([^:]+)
5+
Value Filldown NEIGHBOR_AS (\d+)
6+
Value Filldown BGP_NEIGHBOR (\S+)
7+
Value ADDRESS_FAMILY (\S+)
8+
Value ACCEPTED_PFX (\d+)
9+
Value ADVERTISED_PFX (\d+)
10+
11+
Start
12+
^\s*==+
13+
^\s*router id:\s+${ROUTER_ID}
14+
^\s*virtual router:\s+${VIRTUAL_ROUTER}
15+
^\s*Local AS:\s+${LOCAL_AS} -> Peer
16+
17+
Peer
18+
^\s*peer\s+${NEIGHBOR_NAME}:\s+AS\s+${NEIGHBOR_AS},.*IP\s+${BGP_NEIGHBOR} -> PeerData
19+
^\s*$$
20+
21+
PeerData
22+
^\s*${ADDRESS_FAMILY}\s+pfx:\s+Accepted pfx:\s+${ACCEPTED_PFX},\s+Advertised pfx:\s+${ADVERTISED_PFX} -> Record
23+
^\s*${ADDRESS_FAMILY}\s+pfx: -> PeerData
24+
^\s*peer\s+${NEIGHBOR_NAME}:\s+AS\s+${NEIGHBOR_AS},.*IP\s+${BGP_NEIGHBOR} -> PeerData
25+
^\s*$$ -> Peer
26+
^. -> Error
27+
28+
EOF
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
==========
2+
router id: 1.1.1.1
3+
virtual router: VR_HANDOFF
4+
reject default route: no
5+
redist default route: allow
6+
Install BGP routes: yes
7+
Graceful Restart: supported
8+
AS size: 2
9+
Local AS: 65253
10+
Local member AS: 0
11+
Cluster id: 0.0.0.0
12+
Default local preference: 100
13+
Always compare MED: no
14+
Aggregate regardless MED: yes
15+
Deterministic MED processing: yes
16+
Accept ORF: no
17+
Accept CISCO style prefix: yes
18+
mp-bgp-enable: yes
19+
afi-safi-ipv4-unicast: yes
20+
rib-out entries: current 46, peak 47
21+
peer DC-N9K-BGW01 - BLU 301: AS 65253, Established, IP 192.168.1.1
22+
bgpAfiIpv4/unicast pfx: Accepted pfx: 4, Advertised pfx: 4
23+
peer DC-N9K-BGW02 - BLU 301: AS 65301, Established, IP 192.168.1.2
24+
bgpAfiIpv4/unicast pfx: Accepted pfx: 4, Advertised pfx: 4
25+
peer DC-N9K-BGW01 - GRN 302: AS 65253, Established, IP 192.168.2.9
26+
bgpAfiIpv4/unicast pfx: Accepted pfx: 3, Advertised pfx: 4
27+
peer DC-N9K-BGW02 - GRN 302: AS 65302, Established, IP 192.168.2.10
28+
bgpAfiIpv4/unicast pfx: Accepted pfx: 3, Advertised pfx: 4
29+
peer DC-N9K-BGW01 - AMB 303: AS 65253, Established, IP 192.168.3.17
30+
bgpAfiIpv4/unicast pfx: Accepted pfx: 2, Advertised pfx: 3
31+
peer DC-N9K-BGW02 - AMB 303: AS 65303, Established, IP 192.168.3.18
32+
bgpAfiIpv4/unicast pfx: Accepted pfx: 2, Advertised pfx: 3
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
parsed_sample:
3+
- accepted_pfx: "4"
4+
address_family: "bgpAfiIpv4/unicast"
5+
advertised_pfx: "4"
6+
bgp_neighbor: "192.168.1.1"
7+
local_as: "65253"
8+
neighbor_as: "65253"
9+
neighbor_name: "DC-N9K-BGW01 - BLU 301"
10+
router_id: "1.1.1.1"
11+
virtual_router: "VR_HANDOFF"
12+
- accepted_pfx: "4"
13+
address_family: "bgpAfiIpv4/unicast"
14+
advertised_pfx: "4"
15+
bgp_neighbor: "192.168.1.2"
16+
local_as: "65253"
17+
neighbor_as: "65301"
18+
neighbor_name: "DC-N9K-BGW02 - BLU 301"
19+
router_id: "1.1.1.1"
20+
virtual_router: "VR_HANDOFF"
21+
- accepted_pfx: "3"
22+
address_family: "bgpAfiIpv4/unicast"
23+
advertised_pfx: "4"
24+
bgp_neighbor: "192.168.2.9"
25+
local_as: "65253"
26+
neighbor_as: "65253"
27+
neighbor_name: "DC-N9K-BGW01 - GRN 302"
28+
router_id: "1.1.1.1"
29+
virtual_router: "VR_HANDOFF"
30+
- accepted_pfx: "3"
31+
address_family: "bgpAfiIpv4/unicast"
32+
advertised_pfx: "4"
33+
bgp_neighbor: "192.168.2.10"
34+
local_as: "65253"
35+
neighbor_as: "65302"
36+
neighbor_name: "DC-N9K-BGW02 - GRN 302"
37+
router_id: "1.1.1.1"
38+
virtual_router: "VR_HANDOFF"
39+
- accepted_pfx: "2"
40+
address_family: "bgpAfiIpv4/unicast"
41+
advertised_pfx: "3"
42+
bgp_neighbor: "192.168.3.17"
43+
local_as: "65253"
44+
neighbor_as: "65253"
45+
neighbor_name: "DC-N9K-BGW01 - AMB 303"
46+
router_id: "1.1.1.1"
47+
virtual_router: "VR_HANDOFF"
48+
- accepted_pfx: "2"
49+
address_family: "bgpAfiIpv4/unicast"
50+
advertised_pfx: "3"
51+
bgp_neighbor: "192.168.3.18"
52+
local_as: "65253"
53+
neighbor_as: "65303"
54+
neighbor_name: "DC-N9K-BGW02 - AMB 303"
55+
router_id: "1.1.1.1"
56+
virtual_router: "VR_HANDOFF"

0 commit comments

Comments
 (0)