We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v3.20.0
ansible [core 2.18.1] python version = 3.12.3 (main, Nov 6 2024, 18:32:19) [GCC 13.2.0] jinja version = 3.1.5 libyaml = True
v4.1.7
3.11
Add existing device to existing VC:
- name: NETBOX >> Add devices to Virtual chassis netbox.netbox.netbox_device: netbox_url: '{{ netbox_url }}' netbox_token: '{{ netbox_token }}' data: name: '{{ inventory_hostname + "-" + chassis.unit | string }}' virtual_chassis: name: '{{ inventory_hostname }}' master: "{{ inventory_hostname + '-1' }}" vc_position: '{{ chassis.unit | string }}' state: present loop: '{{ device_chassis }}' loop_control: loop_var: chassis
Units added to VC:
failed: [net-swi-0001] (item={'type': '<snip>', 'status': 'planned', 'unit': 4}) => { "ansible_loop_var": "chassis", "changed": false, "chassis": { "status": "planned", "type": "<snip>", "unit": 4 }, "invocation": { "module_args": { "cert": null, "data": { "airflow": null, "asset_tag": null, "cluster": null, "comments": null, "config_template": null, "custom_fields": null, "description": null, "device_role": null, "device_type": null, "face": null, "local_context_data": null, "location": null, "name": "net--swi-0001-4", "oob_ip": null, "platform": null, "position": null, "primary_ip4": null, "primary_ip6": null, "rack": null, "serial": null, "site": null, "status": null, "tags": null, "tenant": null, "vc_position": 4, "vc_priority": null, "virtual_chassis": { "master": "net-swi-0001-1", "name": "net-swi-0001" } }, "netbox_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "netbox_url": "<snip>", "query_params": null, "state": "present", "validate_certs": true } }, "msg": "Could not resolve id of virtual_chassis: {'name': 'net-swi-0001', 'master': 'net-swi-0001-1'}"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Ansible NetBox Collection version
v3.20.0
Ansible version
NetBox version
v4.1.7
Python version
3.11
Steps to Reproduce
Add existing device to existing VC:
Expected Behavior
Units added to VC:
Observed Behavior
The text was updated successfully, but these errors were encountered: