PR #9546 results in JunOS platform detection quirks in combination with virtual-chassis


PR #9546 has resulted in Platform being detected as Juniper Virtual Chassis Switch when a set of devices is stacked. Hence, no more possibility to see whether it is for example an EX2300 or EX3400 virtual-chassis.

What do we think about modifying if (!empty($boxDescr)) to become if (!empty($boxDescr) && ($boxDescr != "Juniper Virtual Chassis Switch")) in includes/polling/os/ so that we restore the previous functionality? It’s possible to build a virtual-chassis of multiple switch models, but only for higher end hardware:


[email protected]:~$ snmpwalk -v2c -cremoved -m JUNIPER-MIB -M /opt/librenms/mibs hostname jnxBoxDescr
JUNIPER-MIB::jnxBoxDescr.0 = STRING: Juniper Virtual Chassis Switch