From 775f87146e834797649de6af55af5755b91eff2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20R=C3=B8dvand?= Date: Mon, 9 Oct 2023 13:53:19 +0200 Subject: [PATCH] Add oob_ip to device (#1085) --- plugins/module_utils/netbox_utils.py | 3 +++ plugins/modules/netbox_device.py | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/plugins/module_utils/netbox_utils.py b/plugins/module_utils/netbox_utils.py index e40f82a17..e42a8ed10 100644 --- a/plugins/module_utils/netbox_utils.py +++ b/plugins/module_utils/netbox_utils.py @@ -161,6 +161,7 @@ primary_ip="address", primary_ip4="address", primary_ip6="address", + oob_ip="address", provider="slug", provider_network="name", rack="name", @@ -254,6 +255,7 @@ "primary_ip": "ip_addresses", "primary_ip4": "ip_addresses", "primary_ip6": "ip_addresses", + "oob_ip": "ip_addresses", "provider": "providers", "provider_network": "provider_networks", "rack": "racks", @@ -474,6 +476,7 @@ "prefix": set(["prefix", "vrf"]), "primary_ip4": set(["address", "vrf"]), "primary_ip6": set(["address", "vrf"]), + "oob_ip": set(["address", "vrf"]), "provider": set(["slug"]), "provider_network": set(["name"]), "rack": set(["name", "site", "location"]), diff --git a/plugins/modules/netbox_device.py b/plugins/modules/netbox_device.py index 403194046..5bd3f4763 100644 --- a/plugins/modules/netbox_device.py +++ b/plugins/modules/netbox_device.py @@ -125,6 +125,12 @@ - Primary IPv6 address assigned to the device required: false type: raw + oob_ip: + description: + - Out-of-band (OOB) IP address assigned to the device + required: false + type: raw + version_added: "3.15.0" cluster: description: - Cluster that the device will be assigned to @@ -306,6 +312,7 @@ def main(): status=dict(required=False, type="raw"), primary_ip4=dict(required=False, type="raw"), primary_ip6=dict(required=False, type="raw"), + oob_ip=dict(required=False, type="raw"), cluster=dict(required=False, type="raw"), virtual_chassis=dict(required=False, type="raw"), vc_position=dict(required=False, type="int"),