Commit 45e25cac authored by Weibin Sun's avatar Weibin Sun
Browse files

typo fixed

parent 4b620589
...@@ -1220,7 +1220,7 @@ sub doListVlans ($) { ...@@ -1220,7 +1220,7 @@ sub doListVlans ($) {
my ($out,$in) = split "#", $pair; my ($out,$in) = split "#", $pair;
my $vlan = "$in#" . ${$vlans{$out}}[0] . "#"; my $vlan = "$in#" . ${$vlans{$out}}[0] . "#";
my $memberref = ${$vlans{$out}}[1]; my $memberref = ${$vlans{$out}}[1];
if (scalar(@$memberref) > 0 && ref(${@$memberref}[0])) { if (scalar(@$memberref) > 0 && ref(${$memberref}[0])) {
$vlan = $vlan.Port->toStrings(@$memberref); $vlan = $vlan.Port->toStrings(@$memberref);
} else { } else {
$vlan = join(' ', @$memberref); $vlan = join(' ', @$memberref);
...@@ -1325,7 +1325,7 @@ $vlan_id,$ddep, $pideid, $vname, $members ...@@ -1325,7 +1325,7 @@ $vlan_id,$ddep, $pideid, $vname, $members
# #
if ($opt{M}) { if ($opt{M}) {
# Rather than node:port, print out node:MAC (if we know the MAC) # Rather than node:port, print out node:MAC (if we know the MAC)
if (scalar(@$memberref) > 0 && ref(${@$memberref}[0])) { if (scalar(@$memberref) > 0 && ref(${$memberref}[0])) {
$members = join(" ", map $members = join(" ", map
{ {
$_->mac()? $_->node_id().":".$_->mac():$_->toString() $_->mac()? $_->node_id().":".$_->mac():$_->toString()
...@@ -1339,7 +1339,7 @@ $vlan_id,$ddep, $pideid, $vname, $members ...@@ -1339,7 +1339,7 @@ $vlan_id,$ddep, $pideid, $vname, $members
} @ptobjs); } @ptobjs);
} }
} else { } else {
if (scalar(@$memberref) > 0 && ref(${@$memberref}[0])) { if (scalar(@$memberref) > 0 && ref(${$memberref}[0])) {
$members = Port->toStrings(@$memberref); $members = Port->toStrings(@$memberref);
} else { } else {
$members = join(" ",@$memberref); $members = join(" ",@$memberref);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment