Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cisco_ios_show_wireless_tag_policy_summary #1829

Merged
merged 8 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading