[mrtg-developers] FW: cfgmaker for arista and ifAlias

belshaw, john john.belshaw at cggveritas.com
Tue Mar 16 10:19:41 CET 2010


I added support for Arista and got the ifAlias working,
For a some reason html_escape removes the alias entry for me so I just don't use it for the if_descr entry,

Here is a diff from cfgmaker 2.16.3

173c173
<     } elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|foundry|dellLan|force10|3com|extremenetworks|arista)/) {
---
>     } elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|foundry|dellLan|force10|3com|extremenetworks)/) {
698,699c698
<                                    $if_snmp_alias = $$i{ifAlias};
<                                      last };
---
>                                     last };
718a718
>
721c721
<                 #my $html_if_snmp_alias = html_escape($if_snmp_alias);
---
>                 my $html_if_snmp_alias = html_escape($if_snmp_alias);
995,996c995
<           '1.3.6.1.4.1.2272.30' =>    'nortel',
<           '1.3.6.1.4.1.30065' =>      'arista',
---
>           '1.3.6.1.4.1.2272.30' =>    'nortel'

John Belshaw

IT Architecture advisor : Network

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg-developers/attachments/20100316/13c90e1b/attachment.html 


More information about the mrtg-developers mailing list