Open gc-nathanh opened 4 months ago
I think the implementation works like it should be. I want to get the first available prefix when I ask for it. If I run the playbook again I do it because I want a new prefix which is the next free now. I use it to get new prefixes when I need a new prefix. You should probably use a variable to create your description so you don't get the same description on all your prefixes.
Ansible NetBox Collection version
v3.15.0
Ansible version
NetBox version
v3.7.3
Python version
3.9
Steps to Reproduce
Create a new prefix dynamically using
to create a new /30 prefix, then run the playbook a second time.
Expected Behavior
I expected the prefix to be created on the first playbook run, and no new prefixes created on the second run.
Observed Behavior
Running the playbook a second time creates another dynamically assigned prefix with the same description.
I have attempted to use
query_params:
attempt to ensure uniquenessresults in a failure to create:
fatal: [spine1]: FAILED! => {"changed": false, "msg": "{\"prefix\":[\"Duplicate prefix found in global table: 10.100.248.36/30\"]}"}