Commit 780282d
Anatole Denis
Specify interface when assigning primary MAC address
MAC address objects are not necessarily unique in netbox, so when assigning the
primary_interface_field match on the parent object to ensure uniqueness
(example usecase: when using virtual VLAN interfaces on a physical interface,
the children interface may use the same MAC. Then this update fails with an
HTTP 400 because there are multiple netbox MAC address objects with the same
MAC)1 parent 123753a commit 780282d
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
555 | 560 | | |
556 | 561 | | |
557 | 562 | | |
| |||
0 commit comments