- 
                Notifications
    You must be signed in to change notification settings 
- Fork 252
Open
Labels
Description
ISSUE TYPE
- Bug Report
SOFTWARE VERSIONS
Ansible:
2.9.123
Netbox:
2.8.8
Collection:
1.0.1
SUMMARY
@FragmentedPacket
As disscussed on #322, I open an other issue to track the untagged removed vlan bug.
Thx
STEPS TO REPRODUCE
First run
- hosts: cmdb_devices_config
  connection: local
  tasks:
  - name: Configure Devices Interfaces cmdb groups vars
    collections:
      - netbox.netbox
    netbox_device_interface:
      netbox_url: "{{ netbox_url }}"
      netbox_token: "{{ netbox_token }}"
      data:
        device: am-2960-01
        name: GigabitEthernet1/0/3
        description: 802.1x Access Port
        mtu: 1600
        enabled: true
        mode: Access
        untagged_vlan:
          name: Vlan1403
          site: am
        tags: [ 802.1x ]
      state: presentsecond run
- hosts: cmdb_devices_config
  connection: local
  tasks:
  - name: Configure Devices Interfaces cmdb groups vars
    collections:
      - netbox.netbox
    netbox_device_interface:
      netbox_url: "{{ netbox_url }}"
      netbox_token: "{{ netbox_token }}"
      data:
        device: am-2960-01
        name: GigabitEthernet1/0/3
        description: 802.1x Access Port
        mtu: 1600
        enabled: true
        mode: Access
        untagged_vlan: null
        tags: [ 802.1x ]
      state: presentEXPECTED RESULTS
untagged Vlan removed
ACTUAL RESULTS
untagged Vlan not removed
jantari, alexhoopes, BenoitKnecht, yannkeedelta and aoforb