Add "network" command to list or switch networks.

This commit is contained in:
Guus Sliepen 2014-02-26 11:00:30 +01:00
parent 48ecff6ddb
commit 44c7f554c7
4 changed files with 90 additions and 2 deletions

View file

@ -210,6 +210,11 @@ format to standard output,
from where it can be redirected to a file or piped through a program that can parse it directly,
such as
.Xr tcpdump 8 .
.It network Op Ar netname
If
.Ar netname
is given, switch to that network.
Otherwise, display a list of all networks for which configuration files exist.
.El
.Sh EXAMPLES
Examples of some commands:

View file

@ -2399,6 +2399,11 @@ Dump VPN traffic going through the local tinc node in pcap-savefile format to st
from where it can be redirected to a file or piped through a program that can parse it directly,
such as tcpdump.
@cindex network [@var{netname}]
@item network
If @var{netname} is given, switch to that network.
Otherwise, display a list of all networks for which configuration files exist.
@end table
@c ==================================================================