#50 remove interface specific part from vrf interfaces on IOS (#210)

* remove interface specific part from vrf interfaces in IOS

* Update ChangeLog

* Update ChangeLog
This commit is contained in:
Oliver Gorwits
2017-02-04 18:35:50 +00:00
committed by GitHub
parent c35d5814b4
commit 2d539be214
2 changed files with 4 additions and 1 deletions

View File

@@ -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)

View File

@@ -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+)$/ ){