Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix regression in VC hardware detection for JunOS #9772
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.
This commit falls back to using rewrite_junos_hardware() if the "Juniper Virtual Chassis Switch" string is detected in boxDescr, resulting in usable hardware data.
Example SNMP output from boxDescr on an EX3400-48T switch with VC enabled:
Caveat - it's possible to build a virtual-chassis of multiple switch models, but only for higher end hardware. With this commit, we would now report back the hardware only for the primary device: https://www.juniper.net/documentation/en_US/junos/topics/concept/virtual-chassis-ex4200-overview.html#jd0e75
You can detect the hardware of the individual members with the JUNIPER-VIRTUALCHASSIS-MIB which is already in the LibreNMS MIB directory, but I haven't implemented that since the whole virtual-chassis is polled by LibreNMS as one big device.
Example SNMP output:
Also reported previously via the community forums:
DO NOT DELETE THIS TEXT
If you would like to test this pull request then please run: