-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interface list issue #778
Comments
Using shortnames works, but the sorting is a bit off. |
I'm not able to replicate this on v1.8.1. I created the seven interfaces using the two ranges you specified: The ordering is a separate issue that will be addressed in #284. Currently, interfaces are ordered by their slot and position IDs, rather than by name. This results in unnatural ordering for some platforms. |
My mistake, I was trying this on an instantiated device. The issue you're seeing is assigning interface templates to a device type. Let me poke at it some more. |
It looks like django-tables2 is doing something funny with the queryset. I can dump the list of InterfaceTemplate objects from the view and everything looks normal, but the table is doing something strange to our custom-ordered queryset. Interestingly, the table renders perfectly fine if I cast the queryset to a list before feeding it to the table. At the risk of appearing cowardly, I think it makes sense to forego tables for DeviceType components altogether anyway, as we do for Device components (each components table is an included template). |
Turns out this was easy enough to fix by explicitly sorting on the |
Wow, impressive response. |
…rfaceTemplate ordering within a table
Hi!
I'm trying to add a Cisco ASR1000 device with six SFP Gigabit Interfaces, added like so:
GigabitEthernet0/0/[0-5]
This device also have two TenGigabyteEthernet interfaces. When I try to add them as
TenGigabitEthernet0/0/[0-1]
the TenGigabitEthernet interfaces aren't listed, only the GigabitEthernet interfaces. However, if i remove the GigabitEthernet0/0/0 and GigabitEthernet0/0/1, they'll show up.To reproduce:
Netbox version: v1.8.0
Interfaces in ASR1000
Since I'm new to Netbox, I wonder if I'm doing something wrong or if this is a bug
The text was updated successfully, but these errors were encountered: