Skip to content

Commit be86ac1

Browse files
authored
Add airflow to device and device_type (#907)
1 parent 5646c37 commit be86ac1

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

plugins/modules/netbox_device.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@
9696
- rear
9797
required: false
9898
type: str
99+
airflow:
100+
description:
101+
- Airflow of the device
102+
choices:
103+
- front-to-rear
104+
- rear-to-front
105+
- left-to-right
106+
- right-to-left
107+
- side-to-rear
108+
- passive
109+
- mixed
110+
required: false
111+
type: str
112+
version_added: "3.10.0"
99113
status:
100114
description:
101115
- The status of the device
@@ -276,6 +290,19 @@ def main():
276290
type="str",
277291
choices=["Front", "front", "Rear", "rear"],
278292
),
293+
airflow=dict(
294+
required=False,
295+
type="str",
296+
choices=[
297+
"front-to-rear",
298+
"rear-to-front",
299+
"left-to-right",
300+
"right-to-left",
301+
"side-to-rear",
302+
"passive",
303+
"mixed",
304+
],
305+
),
279306
status=dict(required=False, type="raw"),
280307
primary_ip4=dict(required=False, type="raw"),
281308
primary_ip6=dict(required=False, type="raw"),

plugins/modules/netbox_device_type.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,20 @@
7777
- Whether or not the device consumes both front and rear rack faces
7878
required: false
7979
type: bool
80+
airflow:
81+
description:
82+
- Airflow of the device
83+
choices:
84+
- front-to-rear
85+
- rear-to-front
86+
- left-to-right
87+
- right-to-left
88+
- side-to-rear
89+
- passive
90+
- mixed
91+
required: false
92+
type: str
93+
version_added: "3.10.0"
8094
subdevice_role:
8195
description:
8296
- Whether the device type is parent, child, or neither
@@ -203,6 +217,19 @@ def main():
203217
],
204218
),
205219
is_full_depth=dict(required=False, type="bool"),
220+
airflow=dict(
221+
required=False,
222+
type="str",
223+
choices=[
224+
"front-to-rear",
225+
"rear-to-front",
226+
"left-to-right",
227+
"right-to-left",
228+
"side-to-rear",
229+
"passive",
230+
"mixed",
231+
],
232+
),
206233
subdevice_role=dict(
207234
required=False,
208235
choices=["Parent", "parent", "Child", "child"],

0 commit comments

Comments
 (0)