Replies: 2 comments
-
I saw in the Netbox REST API Swagger documentation that in POST /api/dcim/device-types/, looking at the json format and changing it to yaml: i tried:
but I get an error:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I finally get a solution using python3 i will share my code with you all:
roles/create_device_types/files/payon3.py
roles/create_device_types/tasks/main.yml
roles/create_device_types/tasks/main.yml
AND IT WORKS! but i need to run it two times
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Change Type
Correction
Area
Functionality/features
Proposed Changes
First of all I apologize if my English is not completely understandable.
Hi, I'm trying to populate all my company network in Netbox using Ansible.
At this point, I'm stuck in the netbox.netbox.netbox_device_type module. When I try to put a device type from the https://github.com/netbox-community/devicetype-library I get errors in the parameters.
I read https://docs.ansible.com/ansible/latest/collections/netbox/netbox/netbox_device_type_module.html#ansible-collections-netbox-netbox-netbox-device-type-module, it seems to not support the parameters: console-ports, power-ports and interfaces
Is my fault that I'm not using the module correctly?
THE FILES
create_device_types/tasks/main.yml
create_device_types/vars/main.yml
Result executing ansible
Beta Was this translation helpful? Give feedback.
All reactions