Skip to content

Commit

Permalink
Add description to netbox_circuit_type and wwn to netbox_device_inter…
Browse files Browse the repository at this point in the history
…face (#1025)

* Add description to netbox_circuit_type
* Add WWN to netbox_device_interface
* Add tx_power netbox_device_interface
  • Loading branch information
rodvand authored Jun 15, 2023
1 parent e992dca commit 776a291
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/modules/netbox_circuit_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"),
Expand Down
14 changes: 14 additions & 0 deletions plugins/modules/netbox_device_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 776a291

Please sign in to comment.