Update LAN Network (v3.2)
PUT/sdwan/v3.2/api/sites/:site_id/lannetworks/:lannetwork_id
Update an existing LAN network.
Request
Path Parameters
The ID of the site.
The ID of the LAN network.
- application/json
Body
Details of the network to be updated
- Array [
- ]
- Array [
- ]
- Array [
- ]
The description of the LAN network. Maz size = 256.
The ID of the LAN network.
ipv4_config LanNetworkIPv4Config
The Ipv4 config of the LAN network. Maz size = 256.
The default routers configured for the network.
dhcp_relay DHCPRelay
Details of DHCP relay if enabled.
Indicates if DHCP relay is enabled.
option_82 DHCPRelayOption82
Details of option_82 if enabled. The ION device DHCP Relay agent can include additional information by using DHCP Option 82, Circuit ID, and Remote ID, which the DHCP server uses to allocate the appropriate IP address.
The DHCP relay circuit ID.
Option 82 if enabled.
Possible values: [REPLACE
, KEEP
, APPEND
, DROP
]
The DHCP server reforwarding policy.
The DHCP server remote ID.
The DHCP server IP addresses.
The DHCP server source interface.
dhcp_server DHCPServer
Details of DHCP server if configured.
The address of the site.
custom_options BaseCustomDHCPOptions[]
Custom options defined for the DHCP server.
Custom option definition. Max length supported is 1024.
Custom option value. Max length supported is 8192.
The lease time each client will get if a user does not request a particular lease time.
Description of each instance of the DHCP server, per subnet.
Uncheck to enable the configuration.
The domain name servers for clients to resolve DNS requests. Max number is 3.
The domain name for clients. Max length is 256.
The default gateway for clients.
The DHCP server ID.
ip_ranges IPRange[]required
The valid IPv4 address range for defined subnet.
The original end IP address for the defined subnet.
The original start IP address for the defined subnet.
The maximum lease time the clients can use.
ID of the network context, if configured.
static_mappings StaticMapping[]
IP addresses assigned to clients by statically mapping IPs to MAC addresses of the clients.
IP addresses assigned mapped to MAC addresses of the clients.
The mac addresses that need to be mapped.
The name of the static mapping. Max length supported is 256.
The subnet for which the DHCP server is being configured.
An information field that can be added to identify the DHCP server.
List of IP addresses for the network.
ipv6_config LanNetworkIPv6Config
The Ipv6 config of the LAN network. Maz size = 256.
The LAN config default routers.
The LAN config IPv6 prefix.
The name of the LAN network. Max size = 128.
The network context ID.
Possible values: [GLOBAL
, LOCAL
]
The scope of the network.
An information field that can be added to identify the LAN network. Maximum 10 unique tags of length 1024 each are allowed.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
The description of the LAN network. Maz size = 256.
The ID of the LAN network.
ipv4_config LanNetworkIPv4Config
The Ipv4 config of the LAN network. Maz size = 256.
The default routers configured for the network.
dhcp_relay DHCPRelay
Details of DHCP relay if enabled.
Indicates if DHCP relay is enabled.
option_82 DHCPRelayOption82
Details of option_82 if enabled. The ION device DHCP Relay agent can include additional information by using DHCP Option 82, Circuit ID, and Remote ID, which the DHCP server uses to allocate the appropriate IP address.
The DHCP relay circuit ID.
Option 82 if enabled.
Possible values: [REPLACE
, KEEP
, APPEND
, DROP
]
The DHCP server reforwarding policy.
The DHCP server remote ID.
The DHCP server IP addresses.
The DHCP server source interface.
dhcp_server DHCPServer
Details of DHCP server if configured.
The address of the site.
custom_options BaseCustomDHCPOptions[]
Custom options defined for the DHCP server.
Custom option definition. Max length supported is 1024.
Custom option value. Max length supported is 8192.
The lease time each client will get if a user does not request a particular lease time.
Description of each instance of the DHCP server, per subnet.
Uncheck to enable the configuration.
The domain name servers for clients to resolve DNS requests. Max number is 3.
The domain name for clients. Max length is 256.
The default gateway for clients.
The DHCP server ID.
ip_ranges IPRange[]required
The valid IPv4 address range for defined subnet.
The original end IP address for the defined subnet.
The original start IP address for the defined subnet.
The maximum lease time the clients can use.
ID of the network context, if configured.
static_mappings StaticMapping[]
IP addresses assigned to clients by statically mapping IPs to MAC addresses of the clients.
IP addresses assigned mapped to MAC addresses of the clients.
The mac addresses that need to be mapped.
The name of the static mapping. Max length supported is 256.
The subnet for which the DHCP server is being configured.
An information field that can be added to identify the DHCP server.
List of IP addresses for the network.
ipv6_config LanNetworkIPv6Config
The Ipv6 config of the LAN network. Maz size = 256.
The LAN config default routers.
The LAN config IPv6 prefix.
The name of the LAN network. Max size = 128.
The network context ID.
Possible values: [GLOBAL
, LOCAL
]
The scope of the network.
An information field that can be added to identify the LAN network. Maximum 10 unique tags of length 1024 each are allowed.
{
"id": "string",
"ipv4_config": {
"default_routers": [
"string"
],
"dhcp_relay": {
"enabled": true,
"option_82": {
"circuit_id": "string",
"enabled": true,
"reforwarding_policy": "REPLACE",
"remote_id": "string"
},
"server_ips": [
"string"
],
"source_interface": "string"
},
"dhcp_server": {
"broadcast_address": "string",
"custom_options": [
{
"option_definition": "string",
"option_value": "string"
}
],
"default_lease_time": 0,
"disabled": true,
"dns_servers": [
"string"
],
"domain_name": "string",
"gateway": "string",
"id": "string",
"ip_ranges": [
{
"end_ip": "string",
"start_ip": "string"
}
],
"max_lease_time": 0,
"network_context_id": "string",
"static_mappings": [
{
"ip_address": "string",
"mac": "string",
"name": "string"
}
],
"subnet": "string",
"tags": [
"string"
]
},
"prefixes": [
"string"
]
},
"ipv6_config": {
"default_routers": [
"string"
],
"prefixes": [
"string"
]
},
"name": "string",
"network_context_id": "string",
"scope": "GLOBAL",
"tags": [
"string"
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "INVALID_JSON_COMMON_ATTR_MISMATCH"
},
{
"code": "INVALID_JSON_INPUT"
},
{
"code": "NO_LAN_NET_PREFIX"
},
{
"code": "ONLY_ONE_DEFAULT_ROUTER_SUPPORTED"
},
{
"code": "INVALID_NETWORK_CONTEXT"
},
{
"code": "INVALID_IPV4_PREFIX"
},
{
"code": "SAME_IPV4_PREFIX"
},
{
"code": "INVALID_IPADDRESS"
},
{
"code": "DEFAULT_ROUTER_PREFIX_MISMATCH"
},
{
"code": "SAME_IPV4_DEFAULT_ROUTER_ADDRESS"
},
{
"code": "PREFIX_EXACT_MATCH_WITH_OTHER_SITE"
},
{
"code": "OVERLAPPING_LAN_NET_PREFIXES"
},
{
"code": "INVALID_IPV6_PREFIX"
},
{
"code": "NO_LAN_NET_V6_PREFIX"
},
{
"code": "DEFAULT_ROUTER_V6_EXCEEDS_LIMIT"
},
{
"code": "SAME_IPV6_PREFIX"
}
]
}
}