Update eos_vlan.py (#41852)

changing show command to work for both transport methods
pull/42045/head
Dave Thelen 6 years ago committed by Ganesh Nalawade
parent bd9b8b422d
commit fa2366079a

@ -213,7 +213,7 @@ def map_obj_to_commands(updates, module):
def map_config_to_obj(module): def map_config_to_obj(module):
objs = [] objs = []
vlans = run_commands(module, ['show vlan conf | json']) vlans = run_commands(module, ['show vlan configured-ports | json'])
for vlan in vlans[0]['vlans']: for vlan in vlans[0]['vlans']:
obj = {} obj = {}

Loading…
Cancel
Save