* remove interface specific part from vrf interfaces in IOS * Update ChangeLog * Update ChangeLog
This commit is contained in:
@@ -5,6 +5,7 @@ version 3.35 ()
|
|||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
* #180 support CiscoConfig on Nexus (sf.net:scratchfury)
|
* #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)
|
version 3.34 (2016-11-20)
|
||||||
|
|
||||||
|
|||||||
@@ -313,7 +313,9 @@ sub ipv6_addr_prefix {
|
|||||||
foreach my $row (keys %$ipv6_addr_prefix){
|
foreach my $row (keys %$ipv6_addr_prefix){
|
||||||
if ($row =~ /^(\d+)\.[\d\.]+$/) {
|
if ($row =~ /^(\d+)\.[\d\.]+$/) {
|
||||||
my $type = $1;
|
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
|
# Remove the OID part from the value
|
||||||
my $val = $ipv6_addr_prefix->{$row};
|
my $val = $ipv6_addr_prefix->{$row};
|
||||||
if ( $val =~ /^.+?((?:\d+\.){19}\d+)$/ ){
|
if ( $val =~ /^.+?((?:\d+\.){19}\d+)$/ ){
|
||||||
|
|||||||
Reference in New Issue
Block a user