Skip to content

Commit

Permalink
Add cisco_ios_show_wireless_tag_policy_summary (#1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexblaeuer authored Sep 4, 2024
1 parent bd875d2 commit aa9e1dd
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Value Required NAME (\S+)
Value DESCRIPTION (.+?)

Start
# Skip the header lines
^Number of Policy Tags:.*
^Policy Tag Name\s+Description\s*$$
^-+
# Capturing output
^${NAME}\s+${DESCRIPTION}\s*$$ -> Record
# Handle cases where the description is missing
^${NAME} -> Record
# Capture time-stamp if vty line has command time-stamping turned on
^Load\s+for\s+
^Time\s+source\s+is
# Match blank lines
^\s*$$
# Error out if raw data does not match any above rules.
^. -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ cisco_ios_show_running-config_partition_access-list.textfsm, .*, cisco_ios, sh[[
cisco_ios_show_ip_bgp_neighbors_advertised-routes.textfsm, .*, cisco_ios, sh[[ow]] ip bgp nei[[ghbors]](\s+\d+\.\d+\.\d+\.\d+)? adv[[ertised-routes]]
cisco_ios_show_running-config_partition_route-map.textfsm, .*, cisco_ios, sh[[ow]] ru[[nning-config]] p[[artition]] route-[[map]]
cisco_ios_show_port-security_interface_interface.textfsm, .*, cisco_ios, sh[[ow]] por[[t-security]] i[[nterface]] (\S+)
cisco_ios_show_wireless_tag_policy_summary.textfsm, .*, cisco_ios, sh[[ow]] wireless tag policy sum[[mary]]
cisco_ios_show_capability_feature_routing.textfsm, .*, cisco_ios, sh[[ow]] cap[[ability]] f[[eature]] r[[outing]]
cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm, .*, cisco_ios, sh[[ow]] ip bgp vpnv4 all nei[[ghbors]]
cisco_ios_show_ip_eigrp_interfaces_detail.textfsm, .*, cisco_ios, sh[[ow]] ip ei[[grp]] i[[nterfaces]] de[[tail]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

Number of Policy Tags: 10

Policy Tag Name Description
------------------------------------------------------------------------
PT_VIP PT_VIP
PT_Test PT_Test
PT_Mgmt
PT_Media PT_Media
PT_Default PT_Default
PT_Extra
PT_Hallway PT_Hallway
default-policy-tag default policy-tag
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
parsed_sample:
- description: "PT_VIP"
name: "PT_VIP"
- description: "PT_Test"
name: "PT_Test"
- description: ""
name: "PT_Mgmt"
- description: "PT_Media"
name: "PT_Media"
- description: "PT_Default"
name: "PT_Default"
- description: ""
name: "PT_Extra"
- description: "PT_Hallway"
name: "PT_Hallway"
- description: "default policy-tag"
name: "default-policy-tag"

0 comments on commit aa9e1dd

Please sign in to comment.