diff options
author | root <root@frank.tg14.gathering.org> | 2014-04-16 16:08:49 +0200 |
---|---|---|
committer | root <root@frank.tg14.gathering.org> | 2014-04-16 16:08:49 +0200 |
commit | 4723868223679e038161c2c7e0a1e384f0f8d2cc (patch) | |
tree | 8f6678a2f825bb69ad342f6feacc3b4905fc6dfc /dlink-ng/make-dlink-config.pl | |
parent | 3430d3f965ddac5d24890d56462049b4402084cd (diff) |
Several improvements to dlink-ng.
Diffstat (limited to 'dlink-ng/make-dlink-config.pl')
-rwxr-xr-x | dlink-ng/make-dlink-config.pl | 9 |
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 +} |