Skip to content

Commit e365541

Browse files
authored
Added paloalto_panos_show_routing_resource (#2199)
1 parent fc7f053 commit e365541

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed

ntc_templates/templates/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,7 @@ paloalto_panos_show_interface_management.textfsm, .*, paloalto_panos, sh[[ow]] i
931931
paloalto_panos_show_interface_hardware.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] hard[[ware]]
932932
paloalto_panos_show_running_nat-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] nat[[-policy]]
933933
paloalto_panos_show_interface_logical.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] logi[[cal]]
934+
paloalto_panos_show_routing_resource.textfsm, .*, paloalto_panos, sh[[ow]] ro[[uting]] res[[ource]]
934935
paloalto_panos_request_license_info.textfsm, .*, paloalto_panos, request license info
935936
paloalto_panos_show_counter_global.textfsm, .*, paloalto_panos, sh[[ow]] coun[[ter]] glo[[bal]]
936937
paloalto_panos_show_routing_route.textfsm, .*, paloalto_panos, sh[[ow]] ro[[uting]] rou[[te]]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Value ALL_ROUTES (\d+)
2+
Value IPV4_ROUTES (\d+)
3+
Value IPV6_ROUTES (\d+)
4+
Value ACTIVE_ROUTES (\d+)
5+
Value STATIC_ROUTES (\d+)
6+
Value CONNECT_ROUTES (\d+)
7+
Value BGP_ROUTES (\d+)
8+
Value OSPF_ROUTES (\d+)
9+
Value RIP_ROUTES (\d+)
10+
11+
Start
12+
^GLOBAL ROUTING RESOURCE USAGE: -> Global
13+
14+
Global
15+
^\s*All\s+Routes \(total\):\s+${ALL_ROUTES}
16+
^\s*All IPv4 Routes \(total\):\s+${IPV4_ROUTES}
17+
^\s*All IPv6 Routes \(total\):\s+${IPV6_ROUTES}
18+
^\s*All\s+Routes \(active\):\s+${ACTIVE_ROUTES}
19+
^\s*Static\s+Routes \(total\):\s+${STATIC_ROUTES}
20+
^\s*Connect\s+Routes \(total\):\s+${CONNECT_ROUTES}
21+
^\s*BGP\s+Routes \(total\):\s+${BGP_ROUTES}
22+
^\s*OSPF\s+Routes \(total\):\s+${OSPF_ROUTES}
23+
^\s*RIP\s+Routes \(total\):\s+${RIP_ROUTES} -> Record
24+
^\s*==+$$
25+
^\s*$$
26+
^. -> Error
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
GLOBAL ROUTING RESOURCE USAGE:
2+
==========
3+
All Routes (total): 18 (limit 10000)
4+
All IPv4 Routes (total): 18 (limit 10000)
5+
All IPv6 Routes (total): 0 (limit 10000)
6+
All Routes (active): 18
7+
==========
8+
Static Routes (total): 5
9+
Connect Routes (total): 4
10+
BGP Routes (total): 9
11+
OSPF Routes (total): 0
12+
RIP Routes (total): 0
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
parsed_sample:
3+
- active_routes: "18"
4+
all_routes: "18"
5+
bgp_routes: "9"
6+
connect_routes: "4"
7+
ipv4_routes: "18"
8+
ipv6_routes: "0"
9+
ospf_routes: "0"
10+
rip_routes: "0"
11+
static_routes: "5"

0 commit comments

Comments
 (0)