Establishes connection with the other node.

Request Structure

JSON object:

{
  "method": "node",
  "subcommand": ["connec"],
  "arguments": {
    "net": "network_name",
    "addr | alias | auto": "node_address | node_alias | null"
  },
  "id": "1"
}

Parameters: net (network_name) - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received using - Node Command - NET LIST addr | alias | auto - address of the node | alias of the node | random node

Command:

cellframe-node-cli node connect 
-net mileena 
-addr CCCC::0000::0000::0000

Response:

"None"

Curl Example

Request:

curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '
{
  "method": "node",
  "subcommand": ["connect"],
  "arguments": {
    "net": "riemann",
    "auto": "null"
  },
  "id": "1"
}'

Response:

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