mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[eos] Allow ports to be configured with just trunk mode (#55887)
Fixes #55886
This commit is contained in:
parent
4928373a8b
commit
63155983fe
1 changed files with 1 additions and 0 deletions
|
@ -189,6 +189,7 @@ def map_obj_to_commands(updates, module):
|
|||
if access_vlan != obj_in_have['access_vlan']:
|
||||
commands.append('switchport access vlan {0}'.format(access_vlan))
|
||||
else:
|
||||
commands.append('switchport mode {0}'.format(mode))
|
||||
if native_vlan != obj_in_have['native_vlan'] and native_vlan:
|
||||
commands.append('switchport trunk native vlan {0}'.format(native_vlan))
|
||||
if trunk_allowed_vlans != obj_in_have['trunk_allowed_vlans'] and trunk_allowed_vlans:
|
||||
|
|
Loading…
Reference in a new issue