mirror of https://github.com/aredn/aredn.git
aredn: add notation in Mesh Status to identify tunnel info
This commit is contained in:
parent
98c4409975
commit
12611d3959
|
@ -254,6 +254,7 @@ foreach(`cat /var/run/hosts_olsr 2>/dev/null`)
|
|||
elsif ( $name =~ /^dtdlink\..*$/ )
|
||||
{
|
||||
$hosts{$ip}{name} = $name;
|
||||
$dtd{$originator} = 1;
|
||||
if ( $routes{$ip} ) { $hosts{$ip}{etx} = $routes{$ip}{etx} ; }
|
||||
else { $hosts{$ip}{etx} = "99.000"; }
|
||||
}
|
||||
|
@ -438,13 +439,12 @@ foreach $ip (keys %hosts)
|
|||
$rows{$host} = sprintf "<tr><td valign=top><nobr><a href='http://%s:8080/'>%s</a>", $host, $host . $tactical;
|
||||
|
||||
undef $nodeiface;
|
||||
#if ( $dtd{$ip} )
|
||||
#{
|
||||
#$nodeiface = "dtd";
|
||||
#if ( $midcount{$ip} ) { $midcount{$ip} -= 1; } # extra mid entry matching and with dtdlink in hosts_olsrd
|
||||
#}
|
||||
#if ( $hosts{$ip}{tactical} ) { $midcount{$ip} -= 1; } # extra mid entry if tactical name defined
|
||||
#if ( $midcount{$ip} ) { $nodeiface = $nodeiface ? "dtd," . "tun*$midcount{$ip}" : "tun*$midcount{$ip}" ; }
|
||||
if ( $dtd{$ip} )
|
||||
{
|
||||
if ( $midcount{$ip} ) { $midcount{$ip} -= 1; } # extra mid entry matching and with dtdlink in hosts_olsrd
|
||||
}
|
||||
if ( $hosts{$ip}{tactical} ) { $midcount{$ip} -= 1; } # extra mid entry if tactical name defined
|
||||
if ( $midcount{$ip} ) { $nodeiface = "tun*$midcount{$ip}" ; }
|
||||
if ( $wangateway{$ip} ) { $nodeiface = $nodeiface ? $nodeiface . ",wan" : "wan" ; }
|
||||
|
||||
if ( $nodeiface ) { $rows{$host} .= " <small>($nodeiface)</small>"; }
|
||||
|
@ -506,8 +506,8 @@ if(keys %links)
|
|||
if ( $ipmain ne $ip ) # indicate if dtd or tunnel interface to neighbor
|
||||
{
|
||||
if ( $hosts{$ip}{name} =~ /^dtdlink\..*$/ ){ $nodeiface="dtd" ; }
|
||||
#elsif ( $hosts{$ip}{name} =~ /^mid\d+\..*$/ ) { $nodeiface="tun" ; }
|
||||
#else { $nodeiface="?" ; }
|
||||
elsif ( $hosts{$ip}{name} =~ /^mid\d+\..*$/ ) { $nodeiface="tun" ; }
|
||||
else { $nodeiface="?" ; }
|
||||
}
|
||||
|
||||
if ( $wangateway{$ip} or $wangateway{$ipmain} ) { $nodeiface = $nodeiface ? $nodeiface . ",wan" : "wan" ; }
|
||||
|
|
|
@ -254,7 +254,16 @@ Transmitted Mbps (TxMbps) is calculated with the formula (TxMbps = rate * EWMA)
|
|||
</p>
|
||||
|
||||
<p>
|
||||
"(dtd)" next to a Mesh Node indicates the path to a Neighbor is a cat5 cable. The Neighbor may be listed twice if both an RF and DtDLink path exists. The DtDLink path is always assigned an ETX of "0.1".
|
||||
"(dtd)" next to a Mesh Node in the "Current Neighbors" column indicates the path to a Neighbor is a cat5 cable. The Neighbor may be listed twice if both an RF and DtDLink path exists. The DtDLink path is always assigned an ETX of "0.1". All "Remote Nodes" have a DtDLink interface, consequently "(dtd)" is not show for Remote Nodes.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<br>
|
||||
<strong>(tun*?)</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
"(tun)" next to a Mesh Node in the "Current Neighbors" column indicates the path to the Neighbor is over an Internet tunnel. "(tun*?)" next to a mesh node in the "Remote Nodes" column indicates the node has tunnel links over the internet to connect mesh islands together. "?" is a number indicating the count of tunnel connections the node has.
|
||||
</p>
|
||||
|
||||
<br><br><hr>
|
||||
|
|
Loading…
Reference in New Issue