networktocode / networktocode.nautobot / 4.5.0 / module / device_interface_template Creates or removes interfaces on devices from Nautobot | "added in version" 1.0.0 of networktocode.nautobot" Authors: Tobias Groß (@toerb)networktocode.nautobot.device_interface_template (4.5.0) — module
Install with ansible-galaxy collection install networktocode.nautobot:==4.5.0
collections: - name: networktocode.nautobot version: 4.5.0
Creates or removes interfaces from Nautobot
- name: "Test Nautobot interface template module" connection: local hosts: localhost gather_facts: False tasks: - name: Create interface template within Nautobot with only required information networktocode.nautobot.device_interface_template: url: http://nautobot.local token: thisIsMyToken device_type: Arista Test name: 10GBASE-T (10GE) type: 10gbase-t state: present - name: Delete interface template within nautobot networktocode.nautobot.device_interface_template: url: http://nautobot.local token: thisIsMyToken device_type: Arista Test name: 10GBASE-T (10GE) type: 10gbase-t state: absent
url: description: - 'The URL of the Nautobot instance resolvable by the Ansible host (for example: http://nautobot.example.com:8000)' required: true type: str name: description: - Name of the interface template to be created required: true type: str version_added: 3.0.0 version_added_collection: networktocode.nautobot type: description: - 'Form factor of the interface: ex. 1000Base-T (1GE), Virtual, 10GBASE-T (10GE) This has to be specified exactly as what is found within UI ' required: true type: str version_added: 3.0.0 version_added_collection: networktocode.nautobot state: choices: - absent - present default: present description: - Use C(present) or C(absent) for adding or removing. type: str token: description: - The token created within Nautobot to authorize API access required: true type: str mgmt_only: description: - This interface template is used only for out-of-band management required: false type: bool version_added: 3.0.0 version_added_collection: networktocode.nautobot api_version: description: - API Version Nautobot REST API required: false type: str version_added: 4.1.0 version_added_collection: networktocode.nautobot device_type: description: - Name of the device the interface template will be associated with (case-sensitive) required: true type: raw version_added: 3.0.0 version_added_collection: networktocode.nautobot query_params: description: - This can be used to override the specified values in ALLOWED_QUERY_PARAMS that is defined - in plugins/module_utils/utils.py and provides control to users on what may make - an object unique in their environment. elements: str required: false type: list version_added: 3.0.0 version_added_collection: networktocode.nautobot validate_certs: default: true description: - If C(no), SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. required: false type: raw
interface_template: description: Serialized object as created or already existent within Nautobot returned: on creation type: dict msg: description: Message indicating failure or info about what has been achieved returned: always type: str