Commit e550ccad authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

A seemingly wierd change that will spit out the other side of a link

in the comment field when the link is a direct link between two
nodes. Normally, we do not keep "switch" side info in the DB and so
that side is printed as null.
parent c940c5e1
......@@ -1939,7 +1939,9 @@ sub print_named_link_ptop
my $proto_count = scalar(@_);
my $source_full = "$source:$source/$source_if";
my $dest_full = "$dest:$dest_if";
# Not sure about (null) stuff ...
my $dest_full = "$dest:" .
(($dest_if eq "(null)") ? "$dest_if" : "$dest/$dest_if");
if ($source =~ /cisco/ && $dest =~ /cisco/)
$source_full = $source;
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