Skip to content

Commit 673745b

Browse files
committed
docs
1 parent d15e817 commit 673745b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/ns-api/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5195,7 +5195,8 @@ All parameters:
51955195
- `dhcp_client_id`: Client ID to send when requesting DHCP
51965196
- `dhcp_vendor_class`: Vendor class to send when requesting DHCP
51975197
- `dhcp_hostname_to_send`: Hostname to send when requesting DHCP, can be `deviceHostname`, `doNotSendHostname` or `customHostname`
5198-
- `dhcp_custom_hostname`: Custom hostname to use when `dhcp_hostname_to_send = customHostname`
5198+
- `dhcp_custom_hostname`: Custom hostname to use when `dhcp_hostname_to_send = customHostname
5199+
- `metric`: Routing metric for the interface, if left empty, system will assign an incremental value
51995200
52005201
```bash
52015202
api-cli ns.devices configure-device --data '{"device_type": "physical", "interface_name": "myiface", "protocol": "static", "zone": "lan", "ip6_enabled": false, "device_name": "eth2", "ip4_address": "10.20.30.40/24"}'

packages/ns-api/files/ns.devices

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,7 @@ if cmd == 'list':
11981198
'dhcp_vendor_class': 'string',
11991199
'dhcp_hostname_to_send': 'string',
12001200
'dhcp_custom_hostname': 'string',
1201+
'metric': 'integer'
12011202
},
12021203
'unconfigure-device': {
12031204
'iface_name': 'string',

0 commit comments

Comments
 (0)