ansible-meraki icon indicating copy to clipboard operation
ansible-meraki copied to clipboard

meraki_ms_switchport trunk with no native vlan

Open The-Sec opened this issue 2 years ago • 1 comments

** PlaceHolder **

The-Sec avatar Jan 20 '23 13:01 The-Sec

For the creating the trunk port with the native vlan you can add vlan option in a playbook task: Task:

- name: Configure port as trunk
  meraki_switchport:
    auth_key: '{{ auth_key }}'
    state: present
    serial: '{{ serial_switch }}'
    number: 8
    enabled: true
    name: Test Port
    type: trunk
    vlan: 10
    allowed_vlans: 10, 100, 200
  delegate_to: localhost

After task screenshot from Meraki Dashboard: image

That option is when the task has a vlan. In case when the option vlan is not in the playbook the port will have the previous value of the vlan.

y0rune avatar Jan 21 '23 12:01 y0rune