File mrtg-switches.patch of Package mrtg

Index: mrtg-2.17.7/bin/cfgmaker
===================================================================
--- mrtg-2.17.7.orig/bin/cfgmaker
+++ mrtg-2.17.7/bin/cfgmaker
@@ -175,7 +175,7 @@ sub InterfaceInfo($$$$$) {
         push @Variables,  ($1 > 11.0 or $1 < 10.0 ) ? "ifAlias" : "CiscolocIfDescr";
         if ($1 > 11.2) {push @Variables, "vmVlan";};
        if ($1 > 11.3) {push @Variables, "vlanTrunkPortDynamicStatus";};
-    } elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|dlink|wwp|foundry|dellLan|force10|3com|extremenetworks|openBSD|arista|enterasys|zyxel|vyatta|dcn|brocade)/i) {
+    } elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|dlink|wwp|foundry|dellLan|force10|3com|extremenetworks|openBSD|arista|enterasys|zyxel|vyatta|dcn|brocade|nortel|avaya|cisco)/i) {
         push @Variables, "ifAlias";
     }
 
@@ -996,6 +996,7 @@ sub DeviceInfo ($$$) {
             '1.3.6.1.4.1.890.' =>       'zyxel',
 	    '1.3.6.1.4.1.2272.30' =>    'nortel',
 	    '1.3.6.1.4.1.6339' =>       'DCN',
+            '1.3.6.1.4.1.45.' =>        'avaya',		
             '1.3.6.1.4.1.30155.' =>      'openBSD',
             '1.3.6.1.4.1.30065.' =>      'arista',    
             '1.3.6.1.4.1.5624.' =>      'enterasys',
openSUSE Build Service is sponsored by