-
Notifications
You must be signed in to change notification settings - Fork 218
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
netbox_device_interface fails on a second run to form_factor #193
Comments
@lassizci Can you try the PR I have open for this? |
It's using slugs as the type, instead of the full description.. ie, '10gbase-t' not '10GBASE-T (10GE)' |
@FragmentedPacket thanks! Yes, it seems to work. As mentioned, the type indeed has to be a slug, not the full description. |
Just wanted to add that I have too just ran into this bug using failed: [localhost] (item={'data': {'description': '', 'device': 'ATL-OOB-3750A', 'enabled': True, 'form_factor': '1000BASE-T (1GE)', 'lag': None, 'mac_address': None, 'mgmt_only': False, 'mode': None, 'mtu': 1500, 'name': 'g0/0/1', 'tagged_vlans': [], 'tags': [], 'untagged_vlan': None}, 'state': 'present'}) => {"ansible_loop_var": "item", "changed": false, "item": {"data": {"description": "", "device": "ATL-OOB-3750A", "enabled": true, "form_factor": "1000BASE-T (1GE)", "lag": null, "mac_address": null, "mgmt_only": false, "mode": null, "mtu": 1500, "name": "g0/0/1", "tagged_vlans": [], "tags": [], "untagged_vlan": null}, "state": "present"}, "msg": "form_factor does not exist on existing object. Check to make sure valid field."} |
@lassizci and @mrlesmithjr I just merged the fix for this and suggest changing I will try and get a release out within the next day or two bearing time. |
ISSUE TYPE
SOFTWARE VERSIONS
Ansible:
2.9.7
Netbox:
v2.7.11
Collection:
0.2.0
SUMMARY
netbox_device_interface
seems to fail every time after the initial interface creation due toform_factor
missing in the existing data. I can't find such field from Netbox API.netbox_interface
on the other hand specifiestype
instead ofform_factor
. Is this on purpose? I'm not sure I understood the difference, but tried this one instead, as I had other issue withnetbox_interface
.STEPS TO REPRODUCE
Run this task twice in a row
EXPECTED RESULTS
Should succeed on both runs
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: