diff options
author | root <root@frank.tg14.gathering.org> | 2014-04-16 16:08:49 +0200 |
---|---|---|
committer | Roy Sindre Norangshol <roy.sindre@norangshol.no> | 2014-04-16 16:18:18 +0200 |
commit | b64d243f17dfa9bde34a6e59c59e5cc5ee788ce5 (patch) | |
tree | b39c323f03f7fc3b348cea1a54169167f89f42d7 /dlink-ng/make-dlink-config.pl | |
parent | eafd9d512bed97a60243581012b95a93ba48440e (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 +} |