Skip to content

Commit

Permalink
Merge pull request networktocode#706 from ancoleman/master
Browse files Browse the repository at this point in the history
paloalto_panos_debug_swm_status.textfsm new template
  • Loading branch information
itdependsnetworks authored May 19, 2020
2 parents 1ed6aaf + 2bb8ae8 commit f72c124
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ paloalto_panos_show_interface_hardware.textfsm, .*, paloalto_panos, sh[[ow]] int
paloalto_panos_show_running_nat-policy.textfsm, .*, paloalto_panos, sh[[ow]] runn[[ing]] nat[[-policy]]
paloalto_panos_show_interface_logical.textfsm, .*, paloalto_panos, sh[[ow]] int[[erface]] logi[[cal]]
paloalto_panos_show_counter_global.textfsm, .*, paloalto_panos, sh[[ow]] coun[[ter]] glo[[bal]]
paloalto_panos_debug_swm_status.textfsm, .*, paloalto_panos, de[[bug]] s[[wm]] status
paloalto_panos_show_system_info.textfsm, .*, paloalto_panos, sh[[ow]] sys[[tem]] in[[fo]]
paloalto_panos_show_jobs_all.textfsm, .*, paloalto_panos, sh[[ow]] jo[[bs]] all
paloalto_panos_show_arp_all.textfsm, .*, paloalto_panos, sh[[ow]] ar[[p]] all
Expand Down
10 changes: 10 additions & 0 deletions templates/paloalto_panos_debug_swm_status.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Value PART (\S+)
Value STATE (\S+)
Value VERSION (\S+)

Start
^Partition\s+State\s+Version
^-+$$
^${PART}\s+${STATE}\s+${VERSION} -> Record
^\s*$$
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

Partition State Version
--------------------------------------------------------------------------------
sysroot0 RUNNING-ACTIVE 9.0.5.xfr
sysroot1 PENDING-CHANGE 9.1.2
maint READY 9.1.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
parsed_sample:
- part: "sysroot0"
state: "RUNNING-ACTIVE"
version: "9.0.5.xfr"
- part: "sysroot1"
state: "PENDING-CHANGE"
version: "9.1.2"
- part: "maint"
state: "READY"
version: "9.1.2"

0 comments on commit f72c124

Please sign in to comment.