aboutsummaryrefslogtreecommitdiffstats
path: root/dlink-ng/make-dlink-config.pl
diff options
context:
space:
mode:
authorroot <root@frank.tg14.gathering.org>2014-04-16 16:08:49 +0200
committerroot <root@frank.tg14.gathering.org>2014-04-16 16:08:49 +0200
commit4723868223679e038161c2c7e0a1e384f0f8d2cc (patch)
tree8f6678a2f825bb69ad342f6feacc3b4905fc6dfc /dlink-ng/make-dlink-config.pl
parent3430d3f965ddac5d24890d56462049b4402084cd (diff)
Several improvements to dlink-ng.
Diffstat (limited to 'dlink-ng/make-dlink-config.pl')
-rwxr-xr-xdlink-ng/make-dlink-config.pl9
1 files changed, 7 insertions, 2 deletions
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 (<PATCH>) {
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 (<PATCH>) {
$portchannels{$coregw}++;
die("NO MORE ETHERCHANNELS!") if($portchannels{$coregw} > 64); # IOS-XE 4500 only supports 64 portchannels
-} \ No newline at end of file
+}