Commit f39e32af authored by Weibin Sun's avatar Weibin Sun
Browse files

bug fix for portstats

parent 79454a6e
......@@ -337,7 +337,7 @@ DEVICE: foreach my $name (keys %portMap) {
# Figure out which port on which switch this corresponds to
#
my $switchport = $port->getSwitchPort()?
$port->getSwitchPort()->toString():undef;
$port->getSwitchPort():undef;
if (!$switchport) {
warn "WARNING: No switch port found for ".$port->toString()."\n";
......
Markdown is supported
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