tidy up reindex call

This commit is contained in:
Oliver Gorwits
2018-01-28 18:33:17 +00:00
parent 0bc5c68ed8
commit 382022d3eb
2 changed files with 5 additions and 5 deletions

View File

@@ -3,6 +3,7 @@
[ENHANCEMENTS]
* #363 Show user fullname if available in navbar (earendilfr)
* #366 Retrieve VRF interface IPs (earendilfr)
2.038031 - 2018-01-23

View File

@@ -29,9 +29,9 @@ register_worker({ phase => 'early', driver => 'snmp' }, sub {
my @vrf_list = _get_vrf_list($device, $snmp);
{
my $guard = guard { snmp_comm_reindex($snmp, $device, 0, 0) };
my $guard = guard { snmp_comm_reindex($snmp, $device, 0) };
foreach my $vrf (@vrf_list) {
snmp_comm_reindex($snmp, $device, $vrf, 0);
snmp_comm_reindex($snmp, $device, $vrf);
$ip_index = { %$ip_index , %{$snmp->ip_index} };
$interfaces = { %$interfaces , %{$snmp->interfaces} };
$ip_netmask = { %$ip_netmask , %{$snmp->ip_netmask} };
@@ -278,5 +278,4 @@ sub _get_vrf_list {
return @ok_vrfs;
}
true;