Manages network links: `list`, `disconnect`.
## Request Structure
`JSON object:`
```JSON
{
"method": "net",
"subcommand": ["link","list | disconnect_all"],
"arguments": {
"net": "network_name"
},
"id": "1"
}
```
`Parameters:`
**`net`** - 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]]
`Subcommands:`
**`list`** - lists acrive links
**`disconnect_all`** - disconnects all the links
### Curl Example
**List:**
`Request:`
```powershell
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
"method": "net",
"subcommand": ["link","list"],
"arguments": {
"net": "Backbone"
},
"id": "1"
}'
```
`Response:`
```json
{
"type": 2,
"result": [
{
"links": {
"uplinks": [
{
"addr": "FC29::43BB::BA6F::0913",
"ip": "195.181.200.12 ",
"port": 52001,
"channel": "RCGEND",
"total_packets_sent": 7278
},
{
"addr": "4C88::4182::4445::67B3",
"ip": "109.199.122.235",
"port": 8079,
"channel": "RCGEND",
"total_packets_sent": 7263
},
{
"addr": "B351::985F::67E1::BADE",
"ip": "161.97.163.32 ",
"port": 8079,
"channel": "RCGEND",
"total_packets_sent": 9785
}
],
"downlinks": null
}
}
],
"id": 1
}
```
**Disconnect All:**
`Request:`
```powershell
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
"method": "net",
"subcommand": ["link","disconnect_all"],
"arguments": {
"net": "Backbone"
},
"id": "1"
}'
```
`Response:`
```json
{
"type": 2,
"result": [
{
"message": "Stopped network"
}
],
"id": 1
}
```