Skip to content
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

Mod device_interface to allow custom_fields change #75

Merged
merged 1 commit into from
Aug 24, 2021
Merged
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
17 changes: 17 additions & 0 deletions plugins/modules/device_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@
required: false
type: list
elements: raw
custom_fields:
description:
- Allows modification of any custom tags on the interface. The custom field must already exist in the model
required: false
type: dict
update_vc_child:
type: bool
default: False
Expand Down Expand Up @@ -215,6 +220,17 @@
name: GigabitEthernet2/0/1
enabled: false
update_vc_child: True
- name: |
Create an interface and update custom_field data point,
setting the value to True
networktocode.nautobot.device_interface:
url: http://nautobot.local
token: thisIsMyToken
device: test100
name: GigabitEthernet1/1/1
enabled: false
custom_fields:
monitored: True
"""

RETURN = r"""
Expand Down Expand Up @@ -261,6 +277,7 @@ def main():
untagged_vlan=dict(required=False, type="raw"),
tagged_vlans=dict(required=False, type="raw"),
tags=dict(required=False, type="list", elements="raw"),
custom_fields=dict(required=False, type="dict"),
)
)

Expand Down