Show availability box for the primary interface if the node has more than 10 interfaces
Description
Currently, if a given node has more than 10 IP Interfaces, the availability box won't be rendered, because it is expensive to do it.
Now, on those cases, we can just show the availability for the primary interface only. That way, we have something useful to show, and the "Interfaces" panel will have the role to let the user know that there are more IP interfaces to look at.
Acceptance / Success Criteria
None
Lucidchart Diagrams
Activity
Alejandro Galue November 17, 2016 at 2:29 PM
It is possible, but that link never existed before, precisely for the same reason the restriction of the 10 IP interfaces was implemented (it is very expensive to render the availability for hundreds of interfaces). If you want to see the details for a non-primary interface, just double click on a IP from the interface table shown on the node's page.
David Hustace November 15, 2016 at 3:09 PM
Can we but a link on the box that is a link the page with the full list like we do with events and outages boxes?
I propose moving the condition to check the amount of interfaces from element/node.jsp to includes/nodeAvailability-box.jsp. That way on this page we can process and render the information ONLY for the primary interface, if the node has more than 10 IP interfaces.
Currently, if a given node has more than 10 IP Interfaces, the availability box won't be rendered, because it is expensive to do it.
Now, on those cases, we can just show the availability for the primary interface only. That way, we have something useful to show, and the "Interfaces" panel will have the role to let the user know that there are more IP interfaces to look at.