Skip to content

Commit fc7f053

Browse files
authored
Add paloalto_panos_show_routing_route (#2201)
* Add paloalto_panos_show_routing_route * Normalise paloalto_panos_show_routing_route
1 parent aaad403 commit fc7f053

File tree

4 files changed

+282
-0
lines changed

4 files changed

+282
-0
lines changed

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,7 @@ paloalto_panos_show_running_nat-policy.textfsm, .*, paloalto_panos, sh[[ow]] run
933933
paloalto_panos_show_interface_logical.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] logi[[cal]]
934934
paloalto_panos_request_license_info.textfsm, .*, paloalto_panos, request license info
935935
paloalto_panos_show_counter_global.textfsm, .*, paloalto_panos, sh[[ow]] coun[[ter]] glo[[bal]]
936+
paloalto_panos_show_routing_route.textfsm, .*, paloalto_panos, sh[[ow]] ro[[uting]] rou[[te]]
936937
paloalto_panos_debug_swm_status.textfsm, .*, paloalto_panos, de[[bug]] s[[wm]] status
937938
paloalto_panos_show_system_info.textfsm, .*, paloalto_panos, sh[[ow]] sys[[tem]] in[[fo]]
938939
paloalto_panos_show_jobs_all.textfsm, .*, paloalto_panos, sh[[ow]] jo[[bs]] all
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Value NETWORK (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})
2+
Value PREFIX_LENGTH (\d{1,2})
3+
Value NEXTHOP_IP (\S+)
4+
Value METRIC (\d*|)
5+
Value FLAGS ((?:A|C|H|S|~|R|O|B|Oi|Oo|O1|O2|E|M)(?:[\s?]+(?:A|C|H|S|~|R|O|B|Oi|Oo|O1|O2|E|M))?)
6+
Value AGE (\d*|)
7+
Value NEXTHOP_IF ([a-zA-Z][a-zA-Z0-9_/.\-]*|)
8+
Value NEXT_AS (\d*|)
9+
10+
Start
11+
^\s*flags:\s+A:active,\s+\?:loose,\s+C:connect,\s+H:host,\s+S:static,\s+~:internal,\s+R:rip,\s+O:ospf,\s+B:bgp,
12+
^\s+Oi:ospf\s+intra-area,\s+Oo:ospf\s+inter-area,\s+O1:ospf\s+ext-type-1,\s+O2:ospf\s+ext-type-2,\s+E:ecmp,\s+M:multicast
13+
^VIRTUAL\s+ROUTER:.*
14+
^\s*==+
15+
^destination\s+nexthop\s+metric\s+flags\s+age\s+interface\s+next-AS
16+
^\s*${NETWORK}/${PREFIX_LENGTH}\s+${NEXTHOP_IP}\s+${METRIC}\s+${FLAGS}\s+${AGE}\s+${NEXTHOP_IF}\s+${NEXT_AS} -> Record
17+
^total\s+routes\s+shown:.* -> End
18+
^\s*$$
19+
^. -> Error
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
flags: A:active, ?:loose, C:connect, H:host, S:static, ~:internal, R:rip, O:ospf, B:bgp,
2+
Oi:ospf intra-area, Oo:ospf inter-area, O1:ospf ext-type-1, O2:ospf ext-type-2, E:ecmp, M:multicast
3+
4+
5+
VIRTUAL ROUTER: VR_HANDOFF (id 3)
6+
==========
7+
destination nexthop metric flags age interface next-AS
8+
0.0.0.0/0 192.168.2.49 A?B 121661 0
9+
10.0.0.0/8 discard 10 A S
10+
10.0.0.1/32 192.168.2.44 A?B 120738 65213
11+
10.0.0.2/32 192.168.2.44 A?B 120738 65213
12+
10.3.0.0/16 discard 10 A S
13+
10.3.0.0/20 192.168.2.1 A?B 121661 65213
14+
10.3.0.0/21 192.168.2.1 A?B 121661 65213
15+
10.3.252.0/23 192.168.2.49 A?B 121661 0
16+
10.3.252.0/24 192.168.2.49 A?B 121661 0
17+
10.3.252.0/28 discard 10 A S
18+
10.3.253.0/28 discard 10 A S
19+
10.3.255.0/24 192.168.2.25 A?B 121661 65213
20+
10.3.255.0/25 192.168.2.25 A?B 121661 65213
21+
172.16.0.0/12 discard 10 A S
22+
172.17.0.0/16 discard 10 A S
23+
172.17.0.0/17 192.168.2.1 A?B 121661 65213
24+
172.17.128.0/18 192.168.2.9 A?B 121661 65213
25+
172.30.0.0/18 192.168.2.49 A?B 121661 0
26+
172.30.0.0/19 192.168.2.49 A?B 121661 0
27+
192.168.0.0/16 discard 10 A S
28+
192.168.2.0/29 192.168.2.3 0 A C ethernet1/8.3111
29+
192.168.2.3/32 0.0.0.0 0 A H
30+
192.168.2.8/29 192.168.2.11 0 A C ethernet1/8.3112
31+
192.168.2.11/32 0.0.0.0 0 A H
32+
192.168.2.16/29 192.168.2.19 0 A C ethernet1/8.3113
33+
192.168.2.19/32 0.0.0.0 0 A H
34+
192.168.5.10/31 192.168.2.41 A?B 121661 65213
35+
192.168.5.26/31 192.168.2.41 A?B 121661 65213
36+
total routes shown: 98
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
---
2+
parsed_sample:
3+
- age: "121661"
4+
flags: "A?B"
5+
metric: ""
6+
network: "0.0.0.0"
7+
next_as: "0"
8+
nexthop_if: ""
9+
nexthop_ip: "192.168.2.49"
10+
prefix_length: "0"
11+
- age: ""
12+
flags: "A S"
13+
metric: "10"
14+
network: "10.0.0.0"
15+
next_as: ""
16+
nexthop_if: ""
17+
nexthop_ip: "discard"
18+
prefix_length: "8"
19+
- age: "120738"
20+
flags: "A?B"
21+
metric: ""
22+
network: "10.0.0.1"
23+
next_as: "65213"
24+
nexthop_if: ""
25+
nexthop_ip: "192.168.2.44"
26+
prefix_length: "32"
27+
- age: "120738"
28+
flags: "A?B"
29+
metric: ""
30+
network: "10.0.0.2"
31+
next_as: "65213"
32+
nexthop_if: ""
33+
nexthop_ip: "192.168.2.44"
34+
prefix_length: "32"
35+
- age: ""
36+
flags: "A S"
37+
metric: "10"
38+
network: "10.3.0.0"
39+
next_as: ""
40+
nexthop_if: ""
41+
nexthop_ip: "discard"
42+
prefix_length: "16"
43+
- age: "121661"
44+
flags: "A?B"
45+
metric: ""
46+
network: "10.3.0.0"
47+
next_as: "65213"
48+
nexthop_if: ""
49+
nexthop_ip: "192.168.2.1"
50+
prefix_length: "20"
51+
- age: "121661"
52+
flags: "A?B"
53+
metric: ""
54+
network: "10.3.0.0"
55+
next_as: "65213"
56+
nexthop_if: ""
57+
nexthop_ip: "192.168.2.1"
58+
prefix_length: "21"
59+
- age: "121661"
60+
flags: "A?B"
61+
metric: ""
62+
network: "10.3.252.0"
63+
next_as: "0"
64+
nexthop_if: ""
65+
nexthop_ip: "192.168.2.49"
66+
prefix_length: "23"
67+
- age: "121661"
68+
flags: "A?B"
69+
metric: ""
70+
network: "10.3.252.0"
71+
next_as: "0"
72+
nexthop_if: ""
73+
nexthop_ip: "192.168.2.49"
74+
prefix_length: "24"
75+
- age: ""
76+
flags: "A S"
77+
metric: "10"
78+
network: "10.3.252.0"
79+
next_as: ""
80+
nexthop_if: ""
81+
nexthop_ip: "discard"
82+
prefix_length: "28"
83+
- age: ""
84+
flags: "A S"
85+
metric: "10"
86+
network: "10.3.253.0"
87+
next_as: ""
88+
nexthop_if: ""
89+
nexthop_ip: "discard"
90+
prefix_length: "28"
91+
- age: "121661"
92+
flags: "A?B"
93+
metric: ""
94+
network: "10.3.255.0"
95+
next_as: "65213"
96+
nexthop_if: ""
97+
nexthop_ip: "192.168.2.25"
98+
prefix_length: "24"
99+
- age: "121661"
100+
flags: "A?B"
101+
metric: ""
102+
network: "10.3.255.0"
103+
next_as: "65213"
104+
nexthop_if: ""
105+
nexthop_ip: "192.168.2.25"
106+
prefix_length: "25"
107+
- age: ""
108+
flags: "A S"
109+
metric: "10"
110+
network: "172.16.0.0"
111+
next_as: ""
112+
nexthop_if: ""
113+
nexthop_ip: "discard"
114+
prefix_length: "12"
115+
- age: ""
116+
flags: "A S"
117+
metric: "10"
118+
network: "172.17.0.0"
119+
next_as: ""
120+
nexthop_if: ""
121+
nexthop_ip: "discard"
122+
prefix_length: "16"
123+
- age: "121661"
124+
flags: "A?B"
125+
metric: ""
126+
network: "172.17.0.0"
127+
next_as: "65213"
128+
nexthop_if: ""
129+
nexthop_ip: "192.168.2.1"
130+
prefix_length: "17"
131+
- age: "121661"
132+
flags: "A?B"
133+
metric: ""
134+
network: "172.17.128.0"
135+
next_as: "65213"
136+
nexthop_if: ""
137+
nexthop_ip: "192.168.2.9"
138+
prefix_length: "18"
139+
- age: "121661"
140+
flags: "A?B"
141+
metric: ""
142+
network: "172.30.0.0"
143+
next_as: "0"
144+
nexthop_if: ""
145+
nexthop_ip: "192.168.2.49"
146+
prefix_length: "18"
147+
- age: "121661"
148+
flags: "A?B"
149+
metric: ""
150+
network: "172.30.0.0"
151+
next_as: "0"
152+
nexthop_if: ""
153+
nexthop_ip: "192.168.2.49"
154+
prefix_length: "19"
155+
- age: ""
156+
flags: "A S"
157+
metric: "10"
158+
network: "192.168.0.0"
159+
next_as: ""
160+
nexthop_if: ""
161+
nexthop_ip: "discard"
162+
prefix_length: "16"
163+
- age: ""
164+
flags: "A C"
165+
metric: "0"
166+
network: "192.168.2.0"
167+
next_as: ""
168+
nexthop_if: "ethernet1/8.3111"
169+
nexthop_ip: "192.168.2.3"
170+
prefix_length: "29"
171+
- age: ""
172+
flags: "A H"
173+
metric: "0"
174+
network: "192.168.2.3"
175+
next_as: ""
176+
nexthop_if: ""
177+
nexthop_ip: "0.0.0.0"
178+
prefix_length: "32"
179+
- age: ""
180+
flags: "A C"
181+
metric: "0"
182+
network: "192.168.2.8"
183+
next_as: ""
184+
nexthop_if: "ethernet1/8.3112"
185+
nexthop_ip: "192.168.2.11"
186+
prefix_length: "29"
187+
- age: ""
188+
flags: "A H"
189+
metric: "0"
190+
network: "192.168.2.11"
191+
next_as: ""
192+
nexthop_if: ""
193+
nexthop_ip: "0.0.0.0"
194+
prefix_length: "32"
195+
- age: ""
196+
flags: "A C"
197+
metric: "0"
198+
network: "192.168.2.16"
199+
next_as: ""
200+
nexthop_if: "ethernet1/8.3113"
201+
nexthop_ip: "192.168.2.19"
202+
prefix_length: "29"
203+
- age: ""
204+
flags: "A H"
205+
metric: "0"
206+
network: "192.168.2.19"
207+
next_as: ""
208+
nexthop_if: ""
209+
nexthop_ip: "0.0.0.0"
210+
prefix_length: "32"
211+
- age: "121661"
212+
flags: "A?B"
213+
metric: ""
214+
network: "192.168.5.10"
215+
next_as: "65213"
216+
nexthop_if: ""
217+
nexthop_ip: "192.168.2.41"
218+
prefix_length: "31"
219+
- age: "121661"
220+
flags: "A?B"
221+
metric: ""
222+
network: "192.168.5.26"
223+
next_as: "65213"
224+
nexthop_if: ""
225+
nexthop_ip: "192.168.2.41"
226+
prefix_length: "31"

0 commit comments

Comments
 (0)