terminations_b not showing as cabled. #13211
-
Netbox v3.4.10 Im trying to write a script that creates a connection between 2 interfaces within Netbox custom scripts using the following code: a_term = [] b_term = [] _uplink_cable = Cable( The Cable seems to be created fine, and looks fine on interface A. But on interface B, it is not showing a connection. In the object for Interface B, cable null. When i look at the cable object, it shows the expected interface in terminations_b, but again, cable: null. I tried looking up the termination B object in its own variable, and using that to append to the b_term list, but got the same result. Any suggestions here?? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The terminations list must contain an Interface object(s), not just an ID or other raw data. |
Beta Was this translation helpful? Give feedback.
-
This was my bad guys. I had pulled the object prior to creating the cable. then saved that same object AFTER creating the cable. 100% my bad. Thank again for the suggestions |
Beta Was this translation helpful? Give feedback.
This was my bad guys.
I had pulled the object prior to creating the cable. then saved that same object AFTER creating the cable.
100% my bad.
Thank again for the suggestions