Discussion:
cfgmaker for arista and ifAlias
belshaw, john
2010-03-16 09:19:41 UTC
Permalink
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
Tobias Oetiker
2010-06-11 15:34:16 UTC
Permalink
Hi John,

thanks
tobi
Post by belshaw, john
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
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch ***@oetiker.ch ++41 62 775 9902 / sb: -9900
Loading...