|
|
@ -176,9 +176,9 @@ def map_obj_to_commands(updates, module):
|
|
|
|
commands.append('switchport trunk allowed vlan {0}'.format(trunk_allowed_vlans))
|
|
|
|
commands.append('switchport trunk allowed vlan {0}'.format(trunk_allowed_vlans))
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
if obj_in_have['native_vlan']:
|
|
|
|
if obj_in_have['native_vlan']:
|
|
|
|
commands.append('not switchport trunk native vlan {0}'.format(obj_in_have['native_vlan']))
|
|
|
|
commands.append('no switchport trunk native vlan {0}'.format(obj_in_have['native_vlan']))
|
|
|
|
if obj_in_have['trunk_allowed_vlans']:
|
|
|
|
if obj_in_have['trunk_allowed_vlans']:
|
|
|
|
commands.append('not switchport trunk allowed vlan {0}'.format(obj_in_have['trunk_allowed_vlans']))
|
|
|
|
commands.append('no switchport trunk allowed vlan {0}'.format(obj_in_have['trunk_allowed_vlans']))
|
|
|
|
commands.append('switchport access vlan {0}'.format(access_vlan))
|
|
|
|
commands.append('switchport access vlan {0}'.format(access_vlan))
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
if mode == 'access':
|
|
|
|
if mode == 'access':
|
|
|
|