Skip to content

[Feature]: netbox_device_interface - untagged_vlan can't be removed #330

@ltDan79

Description

@ltDan79
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: present

second 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: present
EXPECTED RESULTS

untagged Vlan removed

ACTUAL RESULTS

untagged Vlan not removed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions