device.interfaces.all() does not show all interfaces of virtual chassis #12475
-
Hi all When i do device.interfaces.all() it gives me only the interfaces of this device itself not all of the virtual chassis. This is the primary device which in the web interface shows all interfaces. No sure if this is a bug or i have to do this different, any ideas? KR |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Firstly, to be clear: is this the Django ORM you are using, or pynetbox with the REST API? Secondly: is the "device" that you are querying the master device in the virtual chassis? (Sounds like yes, since you say viewing this in the UI shows all interfaces) |
Beta Was this translation helpful? Give feedback.
-
Uhm i would say its the Django ORM. I am using the new render config feature and use this inside of the jinja2 template. Second question, yes its the master :) |
Beta Was this translation helpful? Give feedback.
Device.vc_interfaces returns an object manager for all VC members I believe, whereas interfaces is just for the "local" device.