Custom script - remove primary IP on an VM or Device? #14412
-
Simple thing really, but I'm lost. I have a need to remove current primary ip, and set another using an custom script. But I can't figure out how. Example, getting an VirtualMachine object and trying to do "x.primary_ip = None" gives an "AttributeError: can't set attribute 'primary_ip'" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Replace |
Beta Was this translation helpful? Give feedback.
-
And I'm so stupid...... object.primary_ip is read only..... object.primary_ip4 and object.primary_ip6 is not and only have to be set to None.... Well...sorted. |
Beta Was this translation helpful? Give feedback.
And I'm so stupid...... object.primary_ip is read only..... object.primary_ip4 and object.primary_ip6 is not and only have to be set to None....
Well...sorted.