diff --git a/ChangeLog b/ChangeLog index 4b568ae2..1bd7ccec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ version 3.35 () [BUG FIXES] * #180 support CiscoConfig on Nexus (sf.net:scratchfury) + * #50 remove interface specific part from vrf interfaces on IOS (W. Vandersmissen) version 3.34 (2016-11-20) diff --git a/Info/IPv6.pm b/Info/IPv6.pm index 7eb9953f..3e145669 100644 --- a/Info/IPv6.pm +++ b/Info/IPv6.pm @@ -313,7 +313,9 @@ sub ipv6_addr_prefix { foreach my $row (keys %$ipv6_addr_prefix){ if ($row =~ /^(\d+)\.[\d\.]+$/) { my $type = $1; - if ($type == 2) { # IPv6 + if (($type == 2) or ($type == 4)) { # IPv6 + # Remove interface specific part from vrf interfaces + if ($row =~ /^((\d+\.){17}\d+)/) { $row = $1 } # Remove the OID part from the value my $val = $ipv6_addr_prefix->{$row}; if ( $val =~ /^.+?((?:\d+\.){19}\d+)$/ ){