Adds one specified candidate-node for further connection  

CLI Example

Command syntax:

node link {add | del}  
-net <net_name> 
{-addr <node_address> | -alias <node_alias>} 
-link <node_address>

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
-addr\alias - address of the node\ alias of the node
-link - address of the candidate-node for connection

Example:

Command:

cellframe-node-cli node link add 
-net riemann -addr DDDD::0000::0000::0001 
-link 8BD8::FCD7::29A4::7149

Response:

link added

JSON-RPC Example

Command:

curl --unix-socket /opt/cellframe-node/var/run/node_cli 
-X POST http://localhost/connect 
-d '{"method":"node", "params":["node;link;add;-net;mileena;-addr;DDDD::0000::0000::0001;-link;8BD8::FCD7::29A4::7149"], "id":"1"}'

Response:

{
  "type": 0,
  "result": "link added",
  "errors": null,
  "id": 1
}