Lists all active networks, or chains if net
parameter was specified
CLI Example
Command syntax:
net list
[chains -net <chain net name>]
Options:
-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list (optional)
Example:
Command:
cellframe-node-cli net list
Response:
networks:
KelVPN, Backbone
JSON-RPC Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli
-X POST http://localhost/connect
-d '{"method":"net", "params":["net;list"], "id":"1"}'
Response:
{
"type": 2,
"result": [
{
"networks": [
"KelVPN",
"Backbone"
]
}
],
"errors": null,
"id": 1
}