Skip to content

Commit

Permalink
Add oob_ip to device (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodvand authored Oct 9, 2023
1 parent 5f26b63 commit 775f871
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/module_utils/netbox_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
primary_ip="address",
primary_ip4="address",
primary_ip6="address",
oob_ip="address",
provider="slug",
provider_network="name",
rack="name",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"]),
Expand Down
7 changes: 7 additions & 0 deletions plugins/modules/netbox_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 775f871

Please sign in to comment.