From 5c64eefb1a6de86b7cee4f346d4aa533d4be9500 Mon Sep 17 00:00:00 2001 From: Antoine Dunn Date: Mon, 16 Oct 2023 15:50:48 +0200 Subject: [PATCH] feat: Add support for default_platform on device_types --- plugins/module_utils/netbox_utils.py | 1 + plugins/modules/netbox_device_type.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/plugins/module_utils/netbox_utils.py b/plugins/module_utils/netbox_utils.py index e42a8ed10..f6b8fa2a8 100644 --- a/plugins/module_utils/netbox_utils.py +++ b/plugins/module_utils/netbox_utils.py @@ -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", diff --git a/plugins/modules/netbox_device_type.py b/plugins/modules/netbox_device_type.py index 07cf3193f..be67ec7c9 100644 --- a/plugins/modules/netbox_device_type.py +++ b/plugins/modules/netbox_device_type.py @@ -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 @@ -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"), ),