Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unable to create a dupplicate prefix mapped to another VLAN #1299

Open
JeanKean-art opened this issue Aug 14, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@JeanKean-art
Copy link

Ansible NetBox Collection version

V3.10

Ansible version

<!--- Paste verbatim output from "ansible --version" between quotes -->

NetBox version

v4.0.7

Python version

3.8

Steps to Reproduce

  • name: Create prefix
    netbox.netbox.netbox_prefix:
    netbox_url: "{{ NETBOX_URL }}"
    netbox_token: "{{ NETBOX_TOKEN }}"
    data:
    prefix: "{{ prefix }}"
    tenant: "{{ tenant }}"
    vrf: "{{ vrf }}"
    prefix_role: "{{ application }}"
    vlan:
    name: "{{ vlan }}"
    tenant: "{{ tenant }}"
    vlan_group: "{{ vlan_group }}"
    prefix_role: "{{ application }}"
    state: present

Expected Behavior

1 :
prefix 10.0.0.0/8
vrf : myVRF
tenant : tenant-1
prefix_role : app-1
vlan: vlan-1
vlan_group : grp-vlans-app

2 :
prefix 10.0.0.0/8
vrf : myVRF
tenant : tenant-2
prefix_role : app-2
vlan: vlan-2
vlan_group : grp-vlans-app

Observed Behavior

In fact the first created prefix is modified with theses parameters :

prefix 10.0.0.0/8
vrf : myVRF
tenant : tenant-2
prefix_role : app-2
vlan: vlan-2
vlan_group : grp-vlans-app

I can create 2 prefixes in GUI but not via ansible netbox module netbox_prefix

@JeanKean-art JeanKean-art added the bug Something isn't working label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant