"This command adds a new host reservation. The reservation may include IPv4 addresses, IPv6 addresses, IPv6 prefixes, various identifiers, a class the client will be assigned to, DHCPv4 and DHCPv6 options, and more."
],
"cmd-comment": [
- "Note that boot-file-name, circuit-id, client-id, ip-address, next-server, and server-hostname are IPv4-specific. ip-addresses, and prefixes are IPv6-specific."
+ "Note that boot-file-name, circuit-id, client-id, ip-address, next-server, and server-hostname are IPv4-specific. ip-addresses, and prefixes are IPv6-specific. Operation-target is optional; default is 'alternate'."
],
"cmd-syntax": [
"{",
" \"server-hostname\": <string>,",
" \"subnet-id\": <integer>,",
" \"user-context\": <any valid JSON>",
- " }",
+ " },",
+ " \"operation-target\": <string (primary, alternate, all, default)>",
" }",
"}"
],
"This command deletes an existing host reservation."
],
"cmd-comment": [
- "The host reservation can be identified by either the (subnet-id, ip-address) pair or a triplet of (subnet-id, identifier-type, identifier)."
+ "The host reservation can be identified by either the (subnet-id, ip-address) pair or a triplet of (subnet-id, identifier-type, identifier). Operation-target is optional; default is 'alternate'."
],
"cmd-syntax": [
"{",
" \"subnet-id\": <integer>,",
" \"ip-address\": <string>,",
" \"identifier-type\": <one of 'hw-address', 'duid', 'circuit-id', 'client-id' and 'flex-id'>,",
- " \"identifier\": <string>",
+ " \"identifier\": <string>,",
+ " \"operation-target\": <string (primary, alternate, all, default)>",
" }",
"}"
],
"brief": [
"This command retrieves all host reservations for a specified subnet."
],
+ "cmd-comment": [
+ "Operation-target is optional; default is 'all'."
+ ],
"cmd-syntax": [
"{",
" \"command\": \"reservation-get-all\",",
" \"arguments\": {",
- " \"subnet-id\": <integer>",
+ " \"subnet-id\": <integer>,",
+ " \"operation-target\": <string (primary, alternate, all, default)>",
" }",
"}"
],
"brief": [
"This command retrieves all host reservations for a specified hostname and optionally a specified subnet."
],
+ "cmd-comment": [
+ "Operation-target is optional; default is 'all'."
+ ],
"cmd-syntax": [
"{",
" \"command\": \"reservation-get-by-hostname\",",
" \"arguments\": {",
" \"hostname\": <hostname>,",
- " \"subnet-id\": <integer>",
+ " \"subnet-id\": <integer>,",
+ " \"operation-target\": <string (primary, alternate, all, default)>",
" }",
"}"
],
"brief": [
"This command retrieves all host reservations for a specified identifier (type and value)."
],
+ "cmd-comment": [
+ "Operation-target is optional; default is 'all'."
+ ],
"cmd-syntax": [
"{",
" \"command\": \"reservation-get-by-id\",",
" \"arguments\": {",
" \"identifier-type\": <one of 'hw-address', 'duid', 'circuit-id', 'client-id' and 'flex-id'>,",
- " \"identifier\": <string>",
+ " \"identifier\": <string>,",
+ " \"operation-target\": <string (primary, alternate, all, default)>",
" }",
"}"
],
"This command retrieves an existing host reservation."
],
"cmd-comment": [
- "The host reservation can be identified by either the (subnet-id, ip-address) pair or a triplet of (subnet-id, identifier-type, identifier)."
+ "The host reservation can be identified by either the (subnet-id, ip-address) pair or a triplet of (subnet-id, identifier-type, identifier). Operation-target is optional; default is 'all'."
],
"cmd-syntax": [
"{",
" \"arguments\": {",
" \"subnet-id\": <integer>,",
" \"identifier-type\": <one of 'hw-address', 'duid', 'circuit-id', 'client-id' and 'flex-id'>,",
- " \"identifier\": <string>",
+ " \"identifier\": <string>,",
+ " \"operation-target\": <string (primary, alternate, all, default)>",
" }",
"}"
],
"This command updates an existing host reservation. The reservation has to include host identifiers and a subnet identifier and may include IPv4 addresses, IPv6 addresses, IPv6 prefixes, various identifiers, a class the client will be assigned to, DHCPv4 and DHCPv6 options, and more."
],
"cmd-comment": [
- "Note that boot-file-name, circuit-id, client-id, ip-address, next-server, and server-hostname are IPv4-specific. ip-addresses, and prefixes are IPv6-specific."
+ "Note that boot-file-name, circuit-id, client-id, ip-address, next-server, and server-hostname are IPv4-specific. ip-addresses, and prefixes are IPv6-specific. Operation-target is optional; default is 'alternate'."
],
"cmd-syntax": [
"{",
" \"server-hostname\": <string>,",
" \"subnet-id\": <integer>,",
" \"user-context\": <any valid JSON>",
- " }",
+ " },",
+ " \"operation-target\": <string (primary, alternate, all, default)>",
" }",
"}"
],