Replies: 1 comment
-
To assign the primary IP(s) for a device or VM, you need to set |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
NetBox version
v2.10.4
Python version
3.6
Steps to Reproduce
curl -s "https://netbox/api/virtualization/virtual-machines/1/"
-X PATCH
-d '{"primary_ip": {"id": 1}}'
-H "Authorization: Token XXXX"
-H "Content-Type: application/json" | jq
Nothing happends
I tried variances like '{"primary_ip": {"id": 1}}' '{"primary_ip": 1}' and '{"primary_ip": "1"}'
Without any luck
Expected Behavior
The non primary IP is not the Primary IP fore the VM.
I do not get this issue for non VM devices.
Observed Behavior
Nothing Happens
Beta Was this translation helpful? Give feedback.
All reactions