Accessing interfaces from a device context #17760
-
Hi everyone. I am using Netbox with the Validity plugin. I think my problem is relevant to Netbox rather than the plugin! So I want to create a test (just like a script for vanilla netbox) and I need to get all the interfaces from the device I am checking and then their name and ip. I am trying to use
And my job executes, but it runs until it timeouts. I am running the test for only one device that have only 7 interfaces linked so the question of load shouldn't be raised according to me. Also, I get nothing "suspicious" in the console logs... It just stays like that until the timeout is reached (1800secondes / 30mins)... Have you guys ever faced this problem ? Please help ❤️ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
That's not complete runnable code. Is this a Custom Script? Then please write a minimal Custom Script which demonstrates your problem and can be used to reproduce it on another system, and then can be adjusted to work. You may also find it helpful to use nbshell to try out the attributes of a device object interactively:
From this, it would appear that your line
is invalid. However, if that's the only problem I'd expect the script to fail, not to keep running indefinitely. (You might get some more info from Use Perhaps what you want is:
|
Beta Was this translation helpful? Give feedback.
That's just standard Docker practice: one container for each process - as opposed to, say, running a process supervisor inside a container which then runs other processes. Then your orchestration framework (docker-compose, or kuberenetes or whatever) takes on the role of the process supervisor, and can schedule them on different nodes.
I'm glad it's working now.