aboutsummaryrefslogtreecommitdiffstats
path: root/dlink-ng/make-dlink-config.pl
diff options
context:
space:
mode:
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
+}