From b64d243f17dfa9bde34a6e59c59e5cc5ee788ce5 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 16 Apr 2014 16:08:49 +0200 Subject: Several improvements to dlink-ng. --- dlink-ng/make-dlink-config.pl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'dlink-ng/make-dlink-config.pl') diff --git a/dlink-ng/make-dlink-config.pl b/dlink-ng/make-dlink-config.pl index f210a51..7a20820 100755 --- a/dlink-ng/make-dlink-config.pl +++ b/dlink-ng/make-dlink-config.pl @@ -38,7 +38,12 @@ while () { my ($o1, $o2, $o3, $o4) = split(/\./, $network); # portchannel per distro - $portchannels{$coregw} = $portchannel_start unless ($portchannels{$coregw} && defined($portchannels{$coregw})); + if($coregw =~ m/distro0/){ + # TG14-fix for distro0 + $portchannels{$coregw} = 15 unless ($portchannels{$coregw} && defined($portchannels{$coregw})); + } else { + $portchannels{$coregw} = $portchannel_start unless ($portchannels{$coregw} && defined($portchannels{$coregw})); + } if ($o4 eq "0") { $letter = "a"; @@ -63,4 +68,4 @@ while () { $portchannels{$coregw}++; die("NO MORE ETHERCHANNELS!") if($portchannels{$coregw} > 64); # IOS-XE 4500 only supports 64 portchannels -} \ No newline at end of file +} -- cgit v1.2.3