-
Notifications
You must be signed in to change notification settings - Fork 737
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cisco_ios_show_wireless_tag_policy_summary (#1829)
- Loading branch information
1 parent
bd875d2
commit aa9e1dd
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
ntc_templates/templates/cisco_ios_show_wireless_tag_policy_summary.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/cisco_ios/show_wireless_tag_policy_summary/show_wireless_tag_policy_summary.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
18 changes: 18 additions & 0 deletions
18
tests/cisco_ios/show_wireless_tag_policy_summary/show_wireless_tag_policy_summary.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |