File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
tests/integration/targets Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 89
89
- Required if I(state=present) and the device does not exist yet
90
90
required: false
91
91
type: raw
92
+ location:
93
+ description:
94
+ - The location the device will be associated to (NetBox 2.11+)
95
+ required: false
96
+ type: raw
92
97
rack:
93
98
description:
94
99
- The name of the rack to assign the device to
@@ -294,6 +299,7 @@ def main():
294
299
serial = dict (required = False , type = "str" ),
295
300
asset_tag = dict (required = False , type = "str" ),
296
301
site = dict (required = False , type = "raw" ),
302
+ location = dict (required = False , type = "raw" ),
297
303
rack = dict (required = False , type = "raw" ),
298
304
position = dict (required = False , type = "int" ),
299
305
face = dict (
Original file line number Diff line number Diff line change 68
68
virtual_chassis : " VC1"
69
69
vc_position : 3
70
70
vc_priority : 15
71
+ location : " Test Rack Group"
71
72
state : present
72
73
register : test_three
73
74
90
91
- test_three['device']['virtual_chassis'] == 1
91
92
- test_three['device']['vc_position'] == 3
92
93
- test_three['device']['vc_priority'] == 15
94
+ - test_three['device']['location'] == 1
93
95
- test_three['msg'] == "device R1 updated"
94
96
95
97
- name : " 3.1 - Update device name using query_params"
Original file line number Diff line number Diff line change 68
68
virtual_chassis : " VC1"
69
69
vc_position : 3
70
70
vc_priority : 15
71
+ location : " Test Rack Group"
71
72
state : present
72
73
register : test_three
73
74
90
91
- test_three['device']['virtual_chassis'] == 1
91
92
- test_three['device']['vc_position'] == 3
92
93
- test_three['device']['vc_priority'] == 15
94
+ - test_three['device']['location'] == 1
93
95
- test_three['msg'] == "device R1 updated"
94
96
95
97
- name : " 3.1 - Update device name using query_params"
You can’t perform that action at this time.
0 commit comments