mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
More generic match of GS1900 (#12246)
This commit is contained in:
@@ -13,8 +13,9 @@
|
|||||||
* @author PipoCanaja <pipocanaja@gmail.com>
|
* @author PipoCanaja <pipocanaja@gmail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (in_array($device['hardware'], ['GS1900-48', 'GS1900-24', 'GS1900-8'])) {
|
if (in_array(explode('-', $device['hardware'], 2)[0], ['GS1900'])) {
|
||||||
echo 'Zyxel GS1900 Q-BRIDGE:' . PHP_EOL;
|
//will match anything starting with GS1900 before the 1st dash (like GS1900-8, GS1900-24E etc etc)
|
||||||
|
echo 'Zyxel buggy Q-BRIDGE:' . PHP_EOL;
|
||||||
// These devices do not provide a proper Q-BRIDGE reply (there is a ".6." index between VLAN and MAC)
|
// These devices do not provide a proper Q-BRIDGE reply (there is a ".6." index between VLAN and MAC)
|
||||||
// <vlanid>.6.<mac1>.<mac2>.<mac3>.<mac4>.<mac5>.<mac6>
|
// <vlanid>.6.<mac1>.<mac2>.<mac3>.<mac4>.<mac5>.<mac6>
|
||||||
// We need to manually handle this here
|
// We need to manually handle this here
|
||||||
|
|||||||
Reference in New Issue
Block a user