How to set the interface type via nbshell/custom scripts? #8506
-
Python 3.9.2 | Django 3.2.11 | NetBox 3.1.6 Good day everyone, I'm trying to change the interface type on a device via custom scripts or netbox but apparently whatever value I'm assigning, it does not seem to be taking effect... I might be doing something stupid, but I cannot figure out what I should be using to make the change.
|
Beta Was this translation helpful? Give feedback.
Answered by
kkthxbye-code
Feb 1, 2022
Replies: 1 comment 1 reply
-
You have to call .save() for the object to be persisted to the database. Something like this (untested):
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zshorvat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have to call .save() for the object to be persisted to the database.
Something like this (untested):