Skip to content

Commit 63b00ca

Browse files
authored
feat: Add support for default_platform on device_types (#1092)
1 parent 88ed8a3 commit 63b00ca

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

plugins/module_utils/netbox_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
"dcim.poweroutlet": "power_outlets",
217217
"dcim.powerport": "power_ports",
218218
"dcim.rearport": "rear_ports",
219+
"default_platform": "platforms",
219220
"device": "devices",
220221
"device_role": "device_roles",
221222
"device_type": "device_types",

plugins/modules/netbox_device_type.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@
112112
- Comments that may include additional information in regards to the device_type
113113
required: false
114114
type: str
115+
default_platform:
116+
description:
117+
- Set the default platform used by the device
118+
required: false
119+
type: raw
120+
version_added: "3.15.0"
115121
tags:
116122
description:
117123
- Any tags that the device type may need to be associated with
@@ -237,6 +243,7 @@ def main():
237243
),
238244
description=dict(required=False, type="str"),
239245
comments=dict(required=False, type="str"),
246+
default_platform=dict(required=False, type="raw"),
240247
tags=dict(required=False, type="list", elements="raw"),
241248
custom_fields=dict(required=False, type="dict"),
242249
),

0 commit comments

Comments
 (0)