Skip to content

Add Cisco IOS show vlan group #2093

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions ntc_templates/templates/cisco_ios_show_vlan_group.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Value Required VLAN_GROUP_NAME (\S+)
Value VLAN_ID (\d+.*)

Start
^vlan\s+group\s+${VLAN_GROUP_NAME}\s+:\s+${VLAN_ID}$$ -> Record
^. -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ cisco_ios_show_policy-map.textfsm, .*, cisco_ios, sh[[ow]] pol[[icy-map]]
cisco_ios_show_power_used.textfsm, .*, cisco_ios, sh[[ow]] pow[[er]] u[[sed]]
cisco_ios_show_redundancy.textfsm, .*, cisco_ios, sh[[ow]] redu[[ndancy]]
cisco_ios_show_snmp_group.textfsm, .*, cisco_ios, sh[[ow]] snm[[p]] g[[roup]]
cisco_ios_show_vlan_group.textfsm, .*, cisco_ios, sh[[ow]] vlan g[[roup]]
cisco_ios_show_vrf_detail.textfsm, .*, cisco_ios, sh[[ow]] vrf detail
cisco_ios_show_vrrp_brief.textfsm, .*, cisco_ios, sh[[ow]] vrr[[p]] b[[rief]]
cisco_ios_show_vtp_status.textfsm, .*, cisco_ios, sh[[ow]] vtp stat[[us]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vlan group VLAN_NAME_1 : 1
vlan group VLAN2 : 2
vlan group VLAN_TEST_123 : 123
vlan group MULTI_VLAN_TEST_1 : 5, 66
vlan group MULTI_VLAN_TEST_2 : 761-763, 197, 200, 208
12 changes: 12 additions & 0 deletions tests/cisco_ios/show_vlan_group/cisco_ios_show_vlan_group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
parsed_sample:
- vlan_group_name: "VLAN_NAME_1"
vlan_id: "1"
- vlan_group_name: "VLAN2"
vlan_id: "2"
- vlan_group_name: "VLAN_TEST_123"
vlan_id: "123"
- vlan_group_name: "MULTI_VLAN_TEST_1"
vlan_id: "5, 66"
- vlan_group_name: "MULTI_VLAN_TEST_2"
vlan_id: "761-763, 197, 200, 208"
Loading