belshaw, john
2010-03-16 09:19:41 UTC
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)/) {
---
< $if_snmp_alias = $$i{ifAlias};
< last };
---
721c721
< #my $html_if_snmp_alias = html_escape($if_snmp_alias);
---
< '1.3.6.1.4.1.2272.30' => 'nortel',
< '1.3.6.1.4.1.30065' => 'arista',
---
IT Architecture advisor : Network
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 };
718a718721c721
< #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 BelshawIT Architecture advisor : Network