Skip to content

Commit

Permalink
feat: Add support for default_platform on device_types
Browse files Browse the repository at this point in the history
  • Loading branch information
MinDBreaK committed Oct 16, 2023
1 parent 775f871 commit 5c64eef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/module_utils/netbox_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
"dcim.poweroutlet": "power_outlets",
"dcim.powerport": "power_ports",
"dcim.rearport": "rear_ports",
"default_platform": "platforms",
"device": "devices",
"device_role": "device_roles",
"device_type": "device_types",
Expand Down
7 changes: 7 additions & 0 deletions plugins/modules/netbox_device_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@
- Comments that may include additional information in regards to the device_type
required: false
type: str
default_platform:
description:
- Set the default platform used by the device
required: false
type: raw
version_added: "3.15.0"
tags:
description:
- Any tags that the device type may need to be associated with
Expand Down Expand Up @@ -237,6 +243,7 @@ def main():
),
description=dict(required=False, type="str"),
comments=dict(required=False, type="str"),
default_platform=dict(required=False, type="raw"),
tags=dict(required=False, type="list", elements="raw"),
custom_fields=dict(required=False, type="dict"),
),
Expand Down

0 comments on commit 5c64eef

Please sign in to comment.