ntc-templates icon indicating copy to clipboard operation
ntc-templates copied to clipboard

Add support to Cisco IOS for 'show vlan group'

Open forrejam opened this issue 8 months ago • 2 comments

Add support for "show vlan group" on cisco IOS

forrejam avatar Apr 01 '25 07:04 forrejam

Please let me know if there is a better way to handle vlan output like this in textfsm

vlan group MULTI_VLAN_TEST_2 : 761-763, 197, 116, 118

- vlan_group_name: "MULTI_VLAN_TEST_2"
  vlan_ids: "761-763, 197, 116, 118"

forrejam avatar Apr 01 '25 09:04 forrejam

Please let me know if there is a better way to handle vlan output like this in textfsm

vlan group MULTI_VLAN_TEST_2 : 761-763, 997, 1160, 1180

- vlan_group_name: "MULTI_VLAN_TEST_2"
  vlan_ids: "761-763, 197, 200, 208"

Since those VLAN IDs are all on one line, the string capture as you have it is probably the simplest route.

If they were on different lines we could have had the chance to use List, but that's not the case here.

mjbear avatar Apr 01 '25 10:04 mjbear

Everything all set for this one @jmcgill298 / @mjbear ?

jvanderaa avatar May 21 '25 17:05 jvanderaa