File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -387,6 +387,11 @@ def make_netbox_calls(endpoint, payload):
387
387
"assigned_object_id" : test100_gi2 .id ,
388
388
"assigned_object_type" : "dcim.interface" ,
389
389
},
390
+ {
391
+ "mac_address" : "AA:BB:CC:DD:EE:FF" , # Identical to id 1
392
+ "assigned_object_id" : test100_gi2 .id ,
393
+ "assigned_object_type" : "dcim.interface" ,
394
+ },
390
395
]
391
396
created_mac_addresses = make_netbox_calls (nb .dcim .mac_addresses , mac_addresses )
392
397
Original file line number Diff line number Diff line change 282
282
ansible.builtin.assert :
283
283
that :
284
284
- test_results.results.0.location.id != test_results.results.1.location.id
285
+
286
+ - name : " Issue #1413 - Update interface primary MAC by ID"
287
+ netbox.netbox.netbox_device_interface :
288
+ netbox_url : http://localhost:32768
289
+ netbox_token : " 0123456789abcdef0123456789abcdef01234567"
290
+ data :
291
+ device : test100
292
+ name : GigabitEthernet2
293
+ primary_mac_address :
294
+ id : 3
295
+ state : present
296
+ register : test_results
297
+
298
+ - name : " ASSERT Issue #1413"
299
+ ansible.builtin.assert :
300
+ that :
301
+ - test_results['interface']['primary_mac_address'] == 3
Original file line number Diff line number Diff line change 282
282
ansible.builtin.assert :
283
283
that :
284
284
- test_results.results.0.location.id != test_results.results.1.location.id
285
+
286
+ - name : " Issue #1413 - Update interface primary MAC by ID"
287
+ netbox.netbox.netbox_device_interface :
288
+ netbox_url : http://localhost:32768
289
+ netbox_token : " 0123456789abcdef0123456789abcdef01234567"
290
+ data :
291
+ device : test100
292
+ name : GigabitEthernet2
293
+ primary_mac_address :
294
+ id : 3
295
+ state : present
296
+ register : test_results
297
+
298
+ - name : " ASSERT Issue #1413"
299
+ ansible.builtin.assert :
300
+ that :
301
+ - test_results['interface']['primary_mac_address'] == 3
You can’t perform that action at this time.
0 commit comments