Skip to content

1333 feature update netbox device interface template #1345

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- Add `label`, `description` and `enabled` to `netbox_device_interface_template` (https://github.com/netbox-community/ansible_modules/issues/1333)
21 changes: 21 additions & 0 deletions plugins/modules/netbox_device_interface_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
- Name of the interface template to be created
required: true
type: str
label:
description:
- The label of the interface template
required: false
type: str
version_added: '3.21.0'
type:
description:
- |
Expand All @@ -47,11 +53,23 @@
This has to be specified exactly as what is found within UI
required: true
type: str
enabled:
description:
- Whether or not the interface template to be created should be enabled
required: false
type: bool
version_added: '3.21.0'
mgmt_only:
description:
- This interface template is used only for out-of-band management
required: false
type: bool
description:
description:
- Description of the interface template
required: false
type: str
version_added: '3.21.0'
poe_mode:
description:
- This interface has PoE ability (NetBox release 3.3 and later)
Expand Down Expand Up @@ -129,11 +147,14 @@ def main():
options=dict(
device_type=dict(required=True, type="raw"),
name=dict(required=True, type="str"),
label=dict(required=False, type="str"),
type=dict(
required=True,
type="str",
),
enabled=dict(required=False, type="bool"),
mgmt_only=dict(required=False, type="bool"),
description=dict(required=False, type="str"),
poe_type=dict(required=False, type="raw"),
poe_mode=dict(required=False, type="raw"),
),
Expand Down
Loading