From 776a291b472c507fc7193c59916ed5f3b69912db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20R=C3=B8dvand?= Date: Thu, 15 Jun 2023 22:14:45 +0200 Subject: [PATCH] Add description to netbox_circuit_type and wwn to netbox_device_interface (#1025) * Add description to netbox_circuit_type * Add WWN to netbox_device_interface * Add tx_power netbox_device_interface --- plugins/modules/netbox_circuit_type.py | 7 +++++++ plugins/modules/netbox_device_interface.py | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/plugins/modules/netbox_circuit_type.py b/plugins/modules/netbox_circuit_type.py index e667dcb8d..922d9e21f 100644 --- a/plugins/modules/netbox_circuit_type.py +++ b/plugins/modules/netbox_circuit_type.py @@ -35,6 +35,12 @@ - The name of the circuit type required: true type: str + description: + description: + - The description of the circuit type + required: false + type: str + version_added: "3.14.0" slug: description: - The slugified version of the name or custom slug. @@ -114,6 +120,7 @@ def main(): required=True, options=dict( name=dict(required=True, type="str"), + description=dict(required=False, type="str"), slug=dict(required=False, type="str"), tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), diff --git a/plugins/modules/netbox_device_interface.py b/plugins/modules/netbox_device_interface.py index 4f9f3a00a..49b08250e 100644 --- a/plugins/modules/netbox_device_interface.py +++ b/plugins/modules/netbox_device_interface.py @@ -86,6 +86,12 @@ - The MAC address of the interface required: false type: str + wwn: + description: + - The WWN of the interface + required: false + type: str + version_added: "3.14.0" mgmt_only: description: - This interface is used only for out-of-band management @@ -103,6 +109,12 @@ required: false type: raw version_added: "3.8.0" + tx_power: + description: + - The interface's configured output power, in dBm + required: false + type: int + version_added: "3.14.0" description: description: - The description of the interface @@ -323,9 +335,11 @@ def main(): bridge=dict(required=False, type="raw"), mtu=dict(required=False, type="int"), mac_address=dict(required=False, type="str"), + wwn=dict(required=False, type="str"), mgmt_only=dict(required=False, type="bool"), poe_type=dict(required=False, type="raw"), poe_mode=dict(required=False, type="raw"), + tx_power=dict(required=False, type="int"), description=dict(required=False, type="str"), mode=dict(required=False, type="raw"), vrf=dict(required=False, type="raw"),