Updated types to 5.14.23
This commit is contained in:
committed by
Paul Tyng
parent
bee58f48d4
commit
fa5012f42a
@@ -47,15 +47,17 @@ type Device struct {
|
|||||||
LedOverrideColor string `json:"led_override_color,omitempty"` // ^#(?:[0-9a-fA-F]{3}){1,2}$
|
LedOverrideColor string `json:"led_override_color,omitempty"` // ^#(?:[0-9a-fA-F]{3}){1,2}$
|
||||||
LedOverrideColorBrightness int `json:"led_override_color_brightness,omitempty"` // ^[0-9][0-9]?$|^100$
|
LedOverrideColorBrightness int `json:"led_override_color_brightness,omitempty"` // ^[0-9][0-9]?$|^100$
|
||||||
Locked bool `json:"locked,omitempty"`
|
Locked bool `json:"locked,omitempty"`
|
||||||
|
LteApn string `json:"lte_apn,omitempty"` // .{1,128}
|
||||||
LteExtAnt bool `json:"lte_ext_ant,omitempty"`
|
LteExtAnt bool `json:"lte_ext_ant,omitempty"`
|
||||||
LtePoe bool `json:"lte_poe,omitempty"`
|
LtePoe bool `json:"lte_poe,omitempty"`
|
||||||
|
LteSimPin int `json:"lte_sim_pin,omitempty"`
|
||||||
LteSoftLimit int `json:"lte_soft_limit,omitempty"`
|
LteSoftLimit int `json:"lte_soft_limit,omitempty"`
|
||||||
MapID string `json:"map_id,omitempty"`
|
MapID string `json:"map_id,omitempty"`
|
||||||
MeshStaVapEnabled bool `json:"mesh_sta_vap_enabled,omitempty"`
|
MeshStaVapEnabled bool `json:"mesh_sta_vap_enabled,omitempty"`
|
||||||
MgmtNetworkID string `json:"mgmt_network_id,omitempty"` // [\d\w]+
|
MgmtNetworkID string `json:"mgmt_network_id,omitempty"` // [\d\w]+
|
||||||
Name string `json:"name,omitempty"` // .{1,128}
|
Name string `json:"name,omitempty"` // .{1,128}
|
||||||
OutdoorModeOverride string `json:"outdoor_mode_override,omitempty"` // default|on|off
|
OutdoorModeOverride string `json:"outdoor_mode_override,omitempty"` // default|on|off
|
||||||
OutletCycleEnabled bool `json:"outlet_cycle_enabled,omitempty"`
|
OutletEnabled bool `json:"outlet_enabled,omitempty"`
|
||||||
OutletOverrides []Device_OutletOverrides `json:"outlet_overrides,omitempty"`
|
OutletOverrides []Device_OutletOverrides `json:"outlet_overrides,omitempty"`
|
||||||
PortOverrides []Device_PortOverrides `json:"port_overrides,omitempty"`
|
PortOverrides []Device_PortOverrides `json:"port_overrides,omitempty"`
|
||||||
PowerSourceCtrl string `json:"power_source_ctrl,omitempty"` // auto|8023af|8023at|8023bt-type3|8023bt-type4|pasv24|poe-injector|ac|adapter|dc|rps
|
PowerSourceCtrl string `json:"power_source_ctrl,omitempty"` // auto|8023af|8023at|8023bt-type3|8023bt-type4|pasv24|poe-injector|ac|adapter|dc|rps
|
||||||
@@ -94,14 +96,17 @@ type Device_EthernetOverrides struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Device_OutletOverrides struct {
|
type Device_OutletOverrides struct {
|
||||||
Index int `json:"index,omitempty"`
|
CycleEnabled bool `json:"cycle_enabled,omitempty"`
|
||||||
RelayState bool `json:"relay_state,omitempty"`
|
Index int `json:"index,omitempty"`
|
||||||
|
Name string `json:"name,omitempty"` // .{0,128}
|
||||||
|
RelayState bool `json:"relay_state,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Device_PortOverrides struct {
|
type Device_PortOverrides struct {
|
||||||
AggregateNumPorts int `json:"aggregate_num_ports,omitempty"` // [2-6]
|
AggregateNumPorts int `json:"aggregate_num_ports,omitempty"` // [2-6]
|
||||||
Autoneg bool `json:"autoneg,omitempty"`
|
Autoneg bool `json:"autoneg,omitempty"`
|
||||||
Dot1XCtrl string `json:"dot1x_ctrl,omitempty"` // auto|force_authorized|force_unauthorized|mac_based|multi_host
|
Dot1XCtrl string `json:"dot1x_ctrl,omitempty"` // auto|force_authorized|force_unauthorized|mac_based|multi_host
|
||||||
|
Dot1XIDleTimeout int `json:"dot1x_idle_timeout,omitempty"` // [0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]
|
||||||
EgressRateLimitKbps int `json:"egress_rate_limit_kbps,omitempty"` // 6[4-9]|[7-9][0-9]|[1-9][0-9]{2,6}
|
EgressRateLimitKbps int `json:"egress_rate_limit_kbps,omitempty"` // 6[4-9]|[7-9][0-9]|[1-9][0-9]{2,6}
|
||||||
EgressRateLimitKbpsEnabled bool `json:"egress_rate_limit_kbps_enabled,omitempty"`
|
EgressRateLimitKbpsEnabled bool `json:"egress_rate_limit_kbps_enabled,omitempty"`
|
||||||
FullDuplex bool `json:"full_duplex,omitempty"`
|
FullDuplex bool `json:"full_duplex,omitempty"`
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ type FirewallRule struct {
|
|||||||
DstNetworkType string `json:"dst_networkconf_type,omitempty"` // ADDRv4|NETv4
|
DstNetworkType string `json:"dst_networkconf_type,omitempty"` // ADDRv4|NETv4
|
||||||
DstPort string `json:"dst_port,omitempty"`
|
DstPort string `json:"dst_port,omitempty"`
|
||||||
Enabled bool `json:"enabled"`
|
Enabled bool `json:"enabled"`
|
||||||
ICMPTypename string `json:"icmp_typename"` // ^$|communication-prohibited|destination-unreachable|echo-reply|echo-request|fragmentation-needed|host-precedence-violation|host-prohibited|host-redirect|host-unknown|host-unreachable|ip-header-bad|network-prohibited|network-redirect|network-unknown|network-unreachable|parameter-problem|port-unreachable|protocol-unreachable|redirect|required-option-missing|router-advertisement|router-solicitation|source-route-failed|timestamp-reply|timestamp-request|TOS-host-redirect|TOS-host-unreachable|TOS-network-redirect|TOS-network-unreachable|ttl-exceeded|ttl-zero-during-reassembly|ttl-zero-during-transit
|
ICMPTypename string `json:"icmp_typename"` // ^$|address-mask-reply|address-mask-request|any|communication-prohibited|destination-unreachable|echo-reply|echo-request|fragmentation-needed|host-precedence-violation|host-prohibited|host-redirect|host-unknown|host-unreachable|ip-header-bad|network-prohibited|network-redirect|network-unknown|network-unreachable|parameter-problem|port-unreachable|precedence-cutoff|protocol-unreachable|redirect|required-option-missing|router-advertisement|router-solicitation|source-quench|source-route-failed|time-exceeded|timestamp-reply|timestamp-request|TOS-host-redirect|TOS-host-unreachable|TOS-network-redirect|TOS-network-unreachable|ttl-zero-during-reassembly|ttl-zero-during-transit
|
||||||
ICMPv6Typename string `json:"icmpv6_typename"` // ^$|address-unreachable|bad-header|communication-prohibited|destination-unreachable|echo-reply|echo-request|neighbor-advertisement|neighbor-solicitation|no-route|packet-too-big|parameter-problem|port-unreachable|redirect|router-advertisement|router-solicitation|time-exceeded|ttl-zero-during-reassembly|ttl-zero-during-transit|unknown-header-type|unknown-option
|
ICMPv6Typename string `json:"icmpv6_typename"` // ^$|address-unreachable|bad-header|beyond-scope|communication-prohibited|destination-unreachable|echo-reply|echo-request|failed-policy|neighbor-advertisement|neighbor-solicitation|no-route|packet-too-big|parameter-problem|port-unreachable|redirect|reject-route|router-advertisement|router-solicitation|time-exceeded|ttl-zero-during-reassembly|ttl-zero-during-transit|unknown-header-type|unknown-option
|
||||||
IPSec string `json:"ipsec"` // match-ipsec|match-none|^$
|
IPSec string `json:"ipsec"` // match-ipsec|match-none|^$
|
||||||
Logging bool `json:"logging"`
|
Logging bool `json:"logging"`
|
||||||
MonthDays string `json:"monthdays"` // ^$|^(([1-9]|[12][0-9]|3[01])(,([1-9]|[12][0-9]|3[01])){0,30})$
|
MonthDays string `json:"monthdays"` // ^$|^(([1-9]|[12][0-9]|3[01])(,([1-9]|[12][0-9]|3[01])){0,30})$
|
||||||
|
|||||||
@@ -23,48 +23,61 @@ type Hotspot2Conf struct {
|
|||||||
NoDelete bool `json:"attr_no_delete,omitempty"`
|
NoDelete bool `json:"attr_no_delete,omitempty"`
|
||||||
NoEdit bool `json:"attr_no_edit,omitempty"`
|
NoEdit bool `json:"attr_no_edit,omitempty"`
|
||||||
|
|
||||||
ApIsolate bool `json:"ap_isolate"`
|
AnqpDomainID int `json:"anqp_domain_id,omitempty"` // ^0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]|$
|
||||||
Capab []Hotspot2Conf_Capab `json:"capab,omitempty"`
|
Capab []Hotspot2Conf_Capab `json:"capab,omitempty"`
|
||||||
CellularNetworkList []Hotspot2Conf_CellularNetworkList `json:"cellular_network_list,omitempty"`
|
CellularNetworkList []Hotspot2Conf_CellularNetworkList `json:"cellular_network_list,omitempty"`
|
||||||
DeauthReqTimeout int `json:"deauth_req_timeout,omitempty"` // [1-9][0-9]|[1-9][0-9][0-9]|[1-2][0-9][0-9][0-9]|3[0-5][0-9][0-9]|3600
|
DeauthReqTimeout int `json:"deauth_req_timeout,omitempty"` // [1-9][0-9]|[1-9][0-9][0-9]|[1-2][0-9][0-9][0-9]|3[0-5][0-9][0-9]|3600
|
||||||
DisableDgaf bool `json:"disable_dgaf"`
|
DisableDgaf bool `json:"disable_dgaf"`
|
||||||
DomainNameList []string `json:"domain_name_list,omitempty"` // .{1,128}
|
DomainNameList []string `json:"domain_name_list,omitempty"` // .{1,128}
|
||||||
FriendlyName []Hotspot2Conf_FriendlyName `json:"friendly_name,omitempty"`
|
FriendlyName []Hotspot2Conf_FriendlyName `json:"friendly_name,omitempty"`
|
||||||
GasComebackDelay int `json:"gas_comeback_delay,omitempty"` // [1-9][0-9]|[1-9][0-9][0-9]|[1-2][0-9][0-9][0-9]|3[0-5][0-9][0-9]|300
|
GasAdvanced bool `json:"gas_advanced"`
|
||||||
Hessid string `json:"hessid"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$|^$
|
GasComebackDelay int `json:"gas_comeback_delay,omitempty"`
|
||||||
Icons []Hotspot2Conf_Icons `json:"icons,omitempty"`
|
GasFragLimit int `json:"gas_frag_limit,omitempty"`
|
||||||
MetricsDownlinkLoad int `json:"metrics_downlink_load,omitempty"`
|
Hessid string `json:"hessid"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$|^$
|
||||||
MetricsDownlinkSpeed int `json:"metrics_downlink_speed,omitempty"`
|
HessidUsed bool `json:"hessid_used"`
|
||||||
MetricsInfo string `json:"metrics_info,omitempty"` // [0-9A-Fa-f]{1,2}
|
IPaddrTypeAvailV4 int `json:"ipaddr_type_avail_v4,omitempty"` // 0|1|2|3|4|5|6|7
|
||||||
MetricsMeasurement int `json:"metrics_measurement,omitempty"`
|
IPaddrTypeAvailV6 int `json:"ipaddr_type_avail_v6,omitempty"` // 0|1|2
|
||||||
MetricsStatus bool `json:"metrics_status"`
|
Icons []Hotspot2Conf_Icons `json:"icons,omitempty"`
|
||||||
MetricsUplinkLoad int `json:"metrics_uplink_load,omitempty"`
|
MetricsDownlinkLoad int `json:"metrics_downlink_load,omitempty"`
|
||||||
MetricsUplinkSpeed int `json:"metrics_uplink_speed,omitempty"`
|
MetricsDownlinkLoadSet bool `json:"metrics_downlink_load_set"`
|
||||||
NaiRealmList []Hotspot2Conf_NaiRealmList `json:"nai_realm_list,omitempty"`
|
MetricsDownlinkSpeed int `json:"metrics_downlink_speed,omitempty"`
|
||||||
Name string `json:"name,omitempty"` // .{1,128}
|
MetricsDownlinkSpeedSet bool `json:"metrics_downlink_speed_set"`
|
||||||
NetworkAccessAsra bool `json:"network_access_asra"`
|
MetricsInfoAtCapacity bool `json:"metrics_info_at_capacity"`
|
||||||
NetworkAccessEsr bool `json:"network_access_esr"`
|
MetricsInfoLinkStatus string `json:"metrics_info_link_status,omitempty"` // up|down|test
|
||||||
NetworkAccessInternet bool `json:"network_access_internet"`
|
MetricsInfoSymmetric bool `json:"metrics_info_symmetric"`
|
||||||
NetworkAccessUesa bool `json:"network_access_uesa"`
|
MetricsMeasurement int `json:"metrics_measurement,omitempty"`
|
||||||
NetworkType int `json:"network_type,omitempty"` // 0|1|2|3|4|5|14|15
|
MetricsMeasurementSet bool `json:"metrics_measurement_set"`
|
||||||
Osu []Hotspot2Conf_Osu `json:"osu,omitempty"`
|
MetricsStatus bool `json:"metrics_status"`
|
||||||
OsuSSID string `json:"osu_ssid"`
|
MetricsUplinkLoad int `json:"metrics_uplink_load,omitempty"`
|
||||||
P2P bool `json:"p2p"`
|
MetricsUplinkLoadSet bool `json:"metrics_uplink_load_set"`
|
||||||
ProxyArp bool `json:"proxy_arp"`
|
MetricsUplinkSpeed int `json:"metrics_uplink_speed,omitempty"`
|
||||||
QOSMapDcsp []Hotspot2Conf_QOSMapDcsp `json:"qos_map_dcsp,omitempty"`
|
MetricsUplinkSpeedSet bool `json:"metrics_uplink_speed_set"`
|
||||||
QOSMapExceptions []Hotspot2Conf_QOSMapExceptions `json:"qos_map_exceptions,omitempty"`
|
NaiRealmList []Hotspot2Conf_NaiRealmList `json:"nai_realm_list,omitempty"`
|
||||||
QOSMapStatus bool `json:"qos_map_status"`
|
Name string `json:"name,omitempty"` // .{1,128}
|
||||||
RoamingConsortiumList []Hotspot2Conf_RoamingConsortiumList `json:"roaming_consortium_list,omitempty"`
|
NetworkAccessAsra bool `json:"network_access_asra"`
|
||||||
TCFilename string `json:"t_c_filename,omitempty"` // .{1,256}
|
NetworkAccessEsr bool `json:"network_access_esr"`
|
||||||
TCTimestamp int `json:"t_c_timestamp,omitempty"`
|
NetworkAccessInternet bool `json:"network_access_internet"`
|
||||||
VenueGroup int `json:"venue_group,omitempty"` // 0|1|2|3|4|5|6|7|8|9|10|11
|
NetworkAccessUesa bool `json:"network_access_uesa"`
|
||||||
VenueName []Hotspot2Conf_VenueName `json:"venue_name,omitempty"`
|
NetworkAuthType int `json:"network_auth_type,omitempty"` // -1|0|1|2|3
|
||||||
VenueType int `json:"venue_type,omitempty"` // 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15
|
NetworkAuthUrl string `json:"network_auth_url,omitempty"`
|
||||||
|
NetworkType int `json:"network_type,omitempty"` // 0|1|2|3|4|5|14|15
|
||||||
|
Osu []Hotspot2Conf_Osu `json:"osu,omitempty"`
|
||||||
|
OsuSSID string `json:"osu_ssid"`
|
||||||
|
QOSMapDcsp []Hotspot2Conf_QOSMapDcsp `json:"qos_map_dcsp,omitempty"`
|
||||||
|
QOSMapExceptions []Hotspot2Conf_QOSMapExceptions `json:"qos_map_exceptions,omitempty"`
|
||||||
|
QOSMapStatus bool `json:"qos_map_status"`
|
||||||
|
RoamingConsortiumList []Hotspot2Conf_RoamingConsortiumList `json:"roaming_consortium_list,omitempty"`
|
||||||
|
SaveTimestamp string `json:"save_timestamp,omitempty"`
|
||||||
|
TCFilename string `json:"t_c_filename,omitempty"` // .{1,256}
|
||||||
|
TCTimestamp int `json:"t_c_timestamp,omitempty"`
|
||||||
|
VenueGroup int `json:"venue_group,omitempty"` // 0|1|2|3|4|5|6|7|8|9|10|11
|
||||||
|
VenueName []Hotspot2Conf_VenueName `json:"venue_name,omitempty"`
|
||||||
|
VenueType int `json:"venue_type,omitempty"` // 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15
|
||||||
}
|
}
|
||||||
|
|
||||||
type Hotspot2Conf_Capab struct {
|
type Hotspot2Conf_Capab struct {
|
||||||
Port string `json:"port,omitempty"` // (([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])|([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])-([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5]))+(,([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])|,([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])-([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])){0,14}
|
Port int `json:"port,omitempty"` // ^(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])|$
|
||||||
Protocol string `json:"protocol,omitempty"` // icmp|tcp_udp|tcp|udp
|
Protocol string `json:"protocol,omitempty"` // icmp|tcp_udp|tcp|udp|esp
|
||||||
Status string `json:"status,omitempty"` // closed|open|unknown
|
Status string `json:"status,omitempty"` // closed|open|unknown
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,7 +150,8 @@ type Hotspot2Conf_RoamingConsortiumList struct {
|
|||||||
|
|
||||||
type Hotspot2Conf_VenueName struct {
|
type Hotspot2Conf_VenueName struct {
|
||||||
Language string `json:"language,omitempty"` // [a-z]{3}
|
Language string `json:"language,omitempty"` // [a-z]{3}
|
||||||
Name string `json:"name,omitempty"` // .{1,128}
|
Name string `json:"name,omitempty"`
|
||||||
|
Url string `json:"url,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) listHotspot2Conf(ctx context.Context, site string) ([]Hotspot2Conf, error) {
|
func (c *Client) listHotspot2Conf(ctx context.Context, site string) ([]Hotspot2Conf, error) {
|
||||||
|
|||||||
@@ -23,142 +23,150 @@ type Network struct {
|
|||||||
NoDelete bool `json:"attr_no_delete,omitempty"`
|
NoDelete bool `json:"attr_no_delete,omitempty"`
|
||||||
NoEdit bool `json:"attr_no_edit,omitempty"`
|
NoEdit bool `json:"attr_no_edit,omitempty"`
|
||||||
|
|
||||||
DHCPDBootEnabled bool `json:"dhcpd_boot_enabled"`
|
DHCPDBootEnabled bool `json:"dhcpd_boot_enabled"`
|
||||||
DHCPDBootFilename string `json:"dhcpd_boot_filename,omitempty"` // .{1,256}
|
DHCPDBootFilename string `json:"dhcpd_boot_filename,omitempty"` // .{1,256}
|
||||||
DHCPDBootServer string `json:"dhcpd_boot_server"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$|(?=^.{3,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)+[a-zA-Z]{2,63}$)|[a-zA-Z0-9-]{1,63}|^$
|
DHCPDBootServer string `json:"dhcpd_boot_server"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$|(?=^.{3,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)+[a-zA-Z]{2,63}$)|[a-zA-Z0-9-]{1,63}|^$
|
||||||
DHCPDDNS1 string `json:"dhcpd_dns_1"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDDNS1 string `json:"dhcpd_dns_1"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDDNS2 string `json:"dhcpd_dns_2"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDDNS2 string `json:"dhcpd_dns_2"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDDNS3 string `json:"dhcpd_dns_3"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDDNS3 string `json:"dhcpd_dns_3"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDDNS4 string `json:"dhcpd_dns_4"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDDNS4 string `json:"dhcpd_dns_4"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDDNSEnabled bool `json:"dhcpd_dns_enabled"`
|
DHCPDDNSEnabled bool `json:"dhcpd_dns_enabled"`
|
||||||
DHCPDEnabled bool `json:"dhcpd_enabled"`
|
DHCPDEnabled bool `json:"dhcpd_enabled"`
|
||||||
DHCPDGateway string `json:"dhcpd_gateway"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDGateway string `json:"dhcpd_gateway"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDGatewayEnabled bool `json:"dhcpd_gateway_enabled"`
|
DHCPDGatewayEnabled bool `json:"dhcpd_gateway_enabled"`
|
||||||
DHCPDIP1 string `json:"dhcpd_ip_1"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDIP1 string `json:"dhcpd_ip_1"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDIP2 string `json:"dhcpd_ip_2"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDIP2 string `json:"dhcpd_ip_2"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDIP3 string `json:"dhcpd_ip_3"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDIP3 string `json:"dhcpd_ip_3"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDLeaseTime int `json:"dhcpd_leasetime,omitempty"`
|
DHCPDLeaseTime int `json:"dhcpd_leasetime,omitempty"`
|
||||||
DHCPDMAC1 string `json:"dhcpd_mac_1"` // (^$|^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$)
|
DHCPDMAC1 string `json:"dhcpd_mac_1"` // (^$|^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$)
|
||||||
DHCPDMAC2 string `json:"dhcpd_mac_2"` // (^$|^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$)
|
DHCPDMAC2 string `json:"dhcpd_mac_2"` // (^$|^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$)
|
||||||
DHCPDMAC3 string `json:"dhcpd_mac_3"` // (^$|^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$)
|
DHCPDMAC3 string `json:"dhcpd_mac_3"` // (^$|^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$)
|
||||||
DHCPDNtp1 string `json:"dhcpd_ntp_1"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDNtp1 string `json:"dhcpd_ntp_1"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDNtp2 string `json:"dhcpd_ntp_2"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDNtp2 string `json:"dhcpd_ntp_2"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDNtpEnabled bool `json:"dhcpd_ntp_enabled"`
|
DHCPDNtpEnabled bool `json:"dhcpd_ntp_enabled"`
|
||||||
DHCPDStart string `json:"dhcpd_start"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDStart string `json:"dhcpd_start"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDStop string `json:"dhcpd_stop"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDStop string `json:"dhcpd_stop"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDTFTPServer string `json:"dhcpd_tftp_server,omitempty"`
|
DHCPDTFTPServer string `json:"dhcpd_tftp_server,omitempty"`
|
||||||
DHCPDTimeOffset int `json:"dhcpd_time_offset,omitempty"` // ^0$|^-?([1-9]([0-9]{1,3})?|[1-7][0-9]{4}|[8][0-5][0-9]{3}|86[0-3][0-9]{2}|86400)$
|
DHCPDTimeOffset int `json:"dhcpd_time_offset,omitempty"` // ^0$|^-?([1-9]([0-9]{1,3})?|[1-7][0-9]{4}|[8][0-5][0-9]{3}|86[0-3][0-9]{2}|86400)$
|
||||||
DHCPDTimeOffsetEnabled bool `json:"dhcpd_time_offset_enabled"`
|
DHCPDTimeOffsetEnabled bool `json:"dhcpd_time_offset_enabled"`
|
||||||
DHCPDUnifiController string `json:"dhcpd_unifi_controller"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDUnifiController string `json:"dhcpd_unifi_controller"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDV6DNS1 string `json:"dhcpdv6_dns_1,omitempty"`
|
DHCPDV6DNS1 string `json:"dhcpdv6_dns_1,omitempty"`
|
||||||
DHCPDV6DNS2 string `json:"dhcpdv6_dns_2,omitempty"`
|
DHCPDV6DNS2 string `json:"dhcpdv6_dns_2,omitempty"`
|
||||||
DHCPDV6DNS3 string `json:"dhcpdv6_dns_3,omitempty"`
|
DHCPDV6DNS3 string `json:"dhcpdv6_dns_3,omitempty"`
|
||||||
DHCPDV6DNS4 string `json:"dhcpdv6_dns_4,omitempty"`
|
DHCPDV6DNS4 string `json:"dhcpdv6_dns_4,omitempty"`
|
||||||
DHCPDV6DNSAuto bool `json:"dhcpdv6_dns_auto"`
|
DHCPDV6DNSAuto bool `json:"dhcpdv6_dns_auto"`
|
||||||
DHCPDV6Enabled bool `json:"dhcpdv6_enabled"`
|
DHCPDV6Enabled bool `json:"dhcpdv6_enabled"`
|
||||||
DHCPDV6LeaseTime int `json:"dhcpdv6_leasetime,omitempty"`
|
DHCPDV6LeaseTime int `json:"dhcpdv6_leasetime,omitempty"`
|
||||||
DHCPDV6Start string `json:"dhcpdv6_start,omitempty"`
|
DHCPDV6Start string `json:"dhcpdv6_start,omitempty"`
|
||||||
DHCPDV6Stop string `json:"dhcpdv6_stop,omitempty"`
|
DHCPDV6Stop string `json:"dhcpdv6_stop,omitempty"`
|
||||||
DHCPDWPAdUrl string `json:"dhcpd_wpad_url,omitempty"`
|
DHCPDWPAdUrl string `json:"dhcpd_wpad_url,omitempty"`
|
||||||
DHCPDWins1 string `json:"dhcpd_wins_1"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDWins1 string `json:"dhcpd_wins_1"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDWins2 string `json:"dhcpd_wins_2"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
DHCPDWins2 string `json:"dhcpd_wins_2"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
DHCPDWinsEnabled bool `json:"dhcpd_wins_enabled"`
|
DHCPDWinsEnabled bool `json:"dhcpd_wins_enabled"`
|
||||||
DHCPRelayEnabled bool `json:"dhcp_relay_enabled"`
|
DHCPRelayEnabled bool `json:"dhcp_relay_enabled"`
|
||||||
DHCPguardEnabled bool `json:"dhcpguard_enabled"`
|
DHCPguardEnabled bool `json:"dhcpguard_enabled"`
|
||||||
DPIEnabled bool `json:"dpi_enabled"`
|
DPIEnabled bool `json:"dpi_enabled"`
|
||||||
DPIgroupID string `json:"dpigroup_id"` // [\d\w]+|^$
|
DPIgroupID string `json:"dpigroup_id"` // [\d\w]+|^$
|
||||||
DomainName string `json:"domain_name"` // (?=^.{3,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)+[a-zA-Z]{2,63}$)|^$|[a-zA-Z0-9-]{1,63}
|
DomainName string `json:"domain_name"` // (?=^.{3,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)+[a-zA-Z]{2,63}$)|^$|[a-zA-Z0-9-]{1,63}
|
||||||
Enabled bool `json:"enabled"`
|
Enabled bool `json:"enabled"`
|
||||||
ExposedToSiteVPN bool `json:"exposed_to_site_vpn"`
|
ExposedToSiteVPN bool `json:"exposed_to_site_vpn"`
|
||||||
IGMPFastleave bool `json:"igmp_fastleave"`
|
GatewayDevice string `json:"gateway_device"` // (^$|^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$)
|
||||||
IGMPGroupmembership int `json:"igmp_groupmembership,omitempty"` // [2-9]|[1-9][0-9]{1,2}|[1-2][0-9]{3}|3[0-5][0-9]{2}|3600|^$
|
GatewayType string `json:"gateway_type,omitempty"` // default|switch
|
||||||
IGMPMaxresponse int `json:"igmp_maxresponse,omitempty"` // [1-9]|1[0-9]|2[0-5]|^$
|
IGMPFastleave bool `json:"igmp_fastleave"`
|
||||||
IGMPMcrtrexpiretime int `json:"igmp_mcrtrexpiretime,omitempty"` // [0-9]|[1-9][0-9]{1,2}|[1-2][0-9]{3}|3[0-5][0-9]{2}|3600|^$
|
IGMPGroupmembership int `json:"igmp_groupmembership,omitempty"` // [2-9]|[1-9][0-9]{1,2}|[1-2][0-9]{3}|3[0-5][0-9]{2}|3600|^$
|
||||||
IGMPQuerier string `json:"igmp_querier"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
IGMPMaxresponse int `json:"igmp_maxresponse,omitempty"` // [1-9]|1[0-9]|2[0-5]|^$
|
||||||
IGMPSnooping bool `json:"igmp_snooping"`
|
IGMPMcrtrexpiretime int `json:"igmp_mcrtrexpiretime,omitempty"` // [0-9]|[1-9][0-9]{1,2}|[1-2][0-9]{3}|3[0-5][0-9]{2}|3600|^$
|
||||||
IGMPSupression bool `json:"igmp_supression"`
|
IGMPQuerier string `json:"igmp_querier"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
IPSecDhGroup int `json:"ipsec_dh_group,omitempty"` // 2|5|14|15|16|19|20|21|25|26
|
IGMPSnooping bool `json:"igmp_snooping"`
|
||||||
IPSecDynamicRouting bool `json:"ipsec_dynamic_routing"`
|
IGMPSupression bool `json:"igmp_supression"`
|
||||||
IPSecEncryption string `json:"ipsec_encryption,omitempty"` // aes128|aes192|aes256|3des
|
IPSecDhGroup int `json:"ipsec_dh_group,omitempty"` // 2|5|14|15|16|19|20|21|25|26
|
||||||
IPSecEspDhGroup int `json:"ipsec_esp_dh_group,omitempty"` // 1|2|5|14|15|16|17|18
|
IPSecDynamicRouting bool `json:"ipsec_dynamic_routing"`
|
||||||
IPSecHash string `json:"ipsec_hash,omitempty"` // sha1|md5|sha256|sha384|sha512
|
IPSecEncryption string `json:"ipsec_encryption,omitempty"` // aes128|aes192|aes256|3des
|
||||||
IPSecIkeDhGroup int `json:"ipsec_ike_dh_group,omitempty"` // 1|2|5|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32
|
IPSecEspDhGroup int `json:"ipsec_esp_dh_group,omitempty"` // 1|2|5|14|15|16|17|18
|
||||||
IPSecInterface string `json:"ipsec_interface,omitempty"` // wan|wan2
|
IPSecHash string `json:"ipsec_hash,omitempty"` // sha1|md5|sha256|sha384|sha512
|
||||||
IPSecKeyExchange string `json:"ipsec_key_exchange,omitempty"` // ikev1|ikev2
|
IPSecIkeDhGroup int `json:"ipsec_ike_dh_group,omitempty"` // 1|2|5|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32
|
||||||
IPSecLocalIP string `json:"ipsec_local_ip,omitempty"` // ^any$|^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
IPSecInterface string `json:"ipsec_interface,omitempty"` // wan|wan2
|
||||||
IPSecPeerIP string `json:"ipsec_peer_ip,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
IPSecKeyExchange string `json:"ipsec_key_exchange,omitempty"` // ikev1|ikev2
|
||||||
IPSecPfs bool `json:"ipsec_pfs"`
|
IPSecLocalIP string `json:"ipsec_local_ip,omitempty"` // ^any$|^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
||||||
IPSecProfile string `json:"ipsec_profile,omitempty"` // customized|azure_dynamic|azure_static
|
IPSecPeerIP string `json:"ipsec_peer_ip,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
||||||
IPSubnet string `json:"ip_subnet,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/([1-9]|[1-2][0-9]|30)$
|
IPSecPfs bool `json:"ipsec_pfs"`
|
||||||
IPV6InterfaceType string `json:"ipv6_interface_type,omitempty"` // static|pd|none
|
IPSecProfile string `json:"ipsec_profile,omitempty"` // customized|azure_dynamic|azure_static
|
||||||
IPV6PDInterface string `json:"ipv6_pd_interface,omitempty"` // wan|wan2
|
IPSubnet string `json:"ip_subnet,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/([1-9]|[1-2][0-9]|30)$
|
||||||
IPV6PDPrefixid string `json:"ipv6_pd_prefixid"` // ^$|[a-fA-F0-9]{1,4}
|
IPV6InterfaceType string `json:"ipv6_interface_type,omitempty"` // static|pd|none
|
||||||
IPV6PDStart string `json:"ipv6_pd_start,omitempty"`
|
IPV6PDInterface string `json:"ipv6_pd_interface,omitempty"` // wan|wan2
|
||||||
IPV6PDStop string `json:"ipv6_pd_stop,omitempty"`
|
IPV6PDPrefixid string `json:"ipv6_pd_prefixid"` // ^$|[a-fA-F0-9]{1,4}
|
||||||
IPV6RaEnabled bool `json:"ipv6_ra_enabled"`
|
IPV6PDStart string `json:"ipv6_pd_start,omitempty"`
|
||||||
IPV6RaPreferredLifetime int `json:"ipv6_ra_preferred_lifetime,omitempty"` // ^([0-9]|[1-8][0-9]|9[0-9]|[1-8][0-9]{2}|9[0-8][0-9]|99[0-9]|[1-8][0-9]{3}|9[0-8][0-9]{2}|99[0-8][0-9]|999[0-9]|[1-8][0-9]{4}|9[0-8][0-9]{3}|99[0-8][0-9]{2}|999[0-8][0-9]|9999[0-9]|[1-8][0-9]{5}|9[0-8][0-9]{4}|99[0-8][0-9]{3}|999[0-8][0-9]{2}|9999[0-8][0-9]|99999[0-9]|[1-8][0-9]{6}|9[0-8][0-9]{5}|99[0-8][0-9]{4}|999[0-8][0-9]{3}|9999[0-8][0-9]{2}|99999[0-8][0-9]|999999[0-9]|[12][0-9]{7}|30[0-9]{6}|31[0-4][0-9]{5}|315[0-2][0-9]{4}|3153[0-5][0-9]{3}|31536000)$|^$
|
IPV6PDStop string `json:"ipv6_pd_stop,omitempty"`
|
||||||
IPV6RaPriority string `json:"ipv6_ra_priority,omitempty"` // high|medium|low
|
IPV6RaEnabled bool `json:"ipv6_ra_enabled"`
|
||||||
IPV6RaValidLifetime int `json:"ipv6_ra_valid_lifetime,omitempty"` // ^([0-9]|[1-8][0-9]|9[0-9]|[1-8][0-9]{2}|9[0-8][0-9]|99[0-9]|[1-8][0-9]{3}|9[0-8][0-9]{2}|99[0-8][0-9]|999[0-9]|[1-8][0-9]{4}|9[0-8][0-9]{3}|99[0-8][0-9]{2}|999[0-8][0-9]|9999[0-9]|[1-8][0-9]{5}|9[0-8][0-9]{4}|99[0-8][0-9]{3}|999[0-8][0-9]{2}|9999[0-8][0-9]|99999[0-9]|[1-8][0-9]{6}|9[0-8][0-9]{5}|99[0-8][0-9]{4}|999[0-8][0-9]{3}|9999[0-8][0-9]{2}|99999[0-8][0-9]|999999[0-9]|[12][0-9]{7}|30[0-9]{6}|31[0-4][0-9]{5}|315[0-2][0-9]{4}|3153[0-5][0-9]{3}|31536000)$|^$
|
IPV6RaPreferredLifetime int `json:"ipv6_ra_preferred_lifetime,omitempty"` // ^([0-9]|[1-8][0-9]|9[0-9]|[1-8][0-9]{2}|9[0-8][0-9]|99[0-9]|[1-8][0-9]{3}|9[0-8][0-9]{2}|99[0-8][0-9]|999[0-9]|[1-8][0-9]{4}|9[0-8][0-9]{3}|99[0-8][0-9]{2}|999[0-8][0-9]|9999[0-9]|[1-8][0-9]{5}|9[0-8][0-9]{4}|99[0-8][0-9]{3}|999[0-8][0-9]{2}|9999[0-8][0-9]|99999[0-9]|[1-8][0-9]{6}|9[0-8][0-9]{5}|99[0-8][0-9]{4}|999[0-8][0-9]{3}|9999[0-8][0-9]{2}|99999[0-8][0-9]|999999[0-9]|[12][0-9]{7}|30[0-9]{6}|31[0-4][0-9]{5}|315[0-2][0-9]{4}|3153[0-5][0-9]{3}|31536000)$|^$
|
||||||
IPV6Subnet string `json:"ipv6_subnet,omitempty"`
|
IPV6RaPriority string `json:"ipv6_ra_priority,omitempty"` // high|medium|low
|
||||||
IsNAT bool `json:"is_nat"`
|
IPV6RaValidLifetime int `json:"ipv6_ra_valid_lifetime,omitempty"` // ^([0-9]|[1-8][0-9]|9[0-9]|[1-8][0-9]{2}|9[0-8][0-9]|99[0-9]|[1-8][0-9]{3}|9[0-8][0-9]{2}|99[0-8][0-9]|999[0-9]|[1-8][0-9]{4}|9[0-8][0-9]{3}|99[0-8][0-9]{2}|999[0-8][0-9]|9999[0-9]|[1-8][0-9]{5}|9[0-8][0-9]{4}|99[0-8][0-9]{3}|999[0-8][0-9]{2}|9999[0-8][0-9]|99999[0-9]|[1-8][0-9]{6}|9[0-8][0-9]{5}|99[0-8][0-9]{4}|999[0-8][0-9]{3}|9999[0-8][0-9]{2}|99999[0-8][0-9]|999999[0-9]|[12][0-9]{7}|30[0-9]{6}|31[0-4][0-9]{5}|315[0-2][0-9]{4}|3153[0-5][0-9]{3}|31536000)$|^$
|
||||||
L2TpInterface string `json:"l2tp_interface,omitempty"` // wan|wan2
|
IPV6Subnet string `json:"ipv6_subnet,omitempty"`
|
||||||
LteLanEnabled bool `json:"lte_lan_enabled"`
|
IsNAT bool `json:"is_nat"`
|
||||||
NATOutboundIP string `json:"nat_outbound_ip,omitempty"`
|
L2TpInterface string `json:"l2tp_interface,omitempty"` // wan|wan2
|
||||||
Name string `json:"name,omitempty"` // .{1,128}
|
LteLanEnabled bool `json:"lte_lan_enabled"`
|
||||||
NetworkGroup string `json:"networkgroup,omitempty"` // LAN[2-8]?
|
NATOutboundIP string `json:"nat_outbound_ip,omitempty"`
|
||||||
OpenVPNLocalAddress string `json:"openvpn_local_address,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
Name string `json:"name,omitempty"` // .{1,128}
|
||||||
OpenVPNLocalPort int `json:"openvpn_local_port,omitempty"` // ^([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])$
|
NetworkGroup string `json:"networkgroup,omitempty"` // LAN[2-8]?
|
||||||
OpenVPNMode string `json:"openvpn_mode,omitempty"` // site-to-site|client|server
|
OpenVPNLocalAddress string `json:"openvpn_local_address,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
||||||
OpenVPNRemoteAddress string `json:"openvpn_remote_address,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
OpenVPNLocalPort int `json:"openvpn_local_port,omitempty"` // ^([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])$
|
||||||
OpenVPNRemoteHost string `json:"openvpn_remote_host,omitempty"` // [^\"\' ]+|^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
OpenVPNMode string `json:"openvpn_mode,omitempty"` // site-to-site|client|server
|
||||||
OpenVPNRemotePort int `json:"openvpn_remote_port,omitempty"` // ^([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])$
|
OpenVPNRemoteAddress string `json:"openvpn_remote_address,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
||||||
PptpcRequireMppe bool `json:"pptpc_require_mppe"`
|
OpenVPNRemoteHost string `json:"openvpn_remote_host,omitempty"` // [^\"\' ]+|^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
||||||
PptpcRouteDistance int `json:"pptpc_route_distance,omitempty"` // ^[1-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]$|^$
|
OpenVPNRemotePort int `json:"openvpn_remote_port,omitempty"` // ^([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])$
|
||||||
PptpcServerIP string `json:"pptpc_server_ip,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|(?=^.{3,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)+[a-zA-Z]{2,63}$)|^[a-zA-Z0-9-]{1,63}$
|
PptpcRequireMppe bool `json:"pptpc_require_mppe"`
|
||||||
PptpcUsername string `json:"pptpc_username,omitempty"` // [^\"\' ]+
|
PptpcRouteDistance int `json:"pptpc_route_distance,omitempty"` // ^[1-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]$|^$
|
||||||
Priority int `json:"priority,omitempty"` // [1-4]
|
PptpcServerIP string `json:"pptpc_server_ip,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|(?=^.{3,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\.)+[a-zA-Z]{2,63}$)|^[a-zA-Z0-9-]{1,63}$
|
||||||
Purpose string `json:"purpose,omitempty"` // corporate|guest|remote-user-vpn|site-vpn|vlan-only|vpn-client|wan
|
PptpcUsername string `json:"pptpc_username,omitempty"` // [^\"\' ]+
|
||||||
RADIUSProfileID string `json:"radiusprofile_id"`
|
Priority int `json:"priority,omitempty"` // [1-4]
|
||||||
RemoteSiteID string `json:"remote_site_id"`
|
Purpose string `json:"purpose,omitempty"` // corporate|guest|remote-user-vpn|site-vpn|vlan-only|vpn-client|wan
|
||||||
RemoteSiteSubnets []string `json:"remote_site_subnets,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/([1-9]|[1-2][0-9]|30)$|^$
|
RADIUSProfileID string `json:"radiusprofile_id"`
|
||||||
RemoteVPNSubnets []string `json:"remote_vpn_subnets,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/([1-9]|[1-2][0-9]|30)$|^$
|
RemoteSiteID string `json:"remote_site_id"`
|
||||||
ReportWANEvent bool `json:"report_wan_event"`
|
RemoteSiteSubnets []string `json:"remote_site_subnets,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/([1-9]|[1-2][0-9]|30)$|^$
|
||||||
RequireMschapv2 bool `json:"require_mschapv2"`
|
RemoteVPNSubnets []string `json:"remote_vpn_subnets,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/([1-9]|[1-2][0-9]|30)$|^$
|
||||||
RouteDistance int `json:"route_distance,omitempty"` // ^[1-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]$|^$
|
ReportWANEvent bool `json:"report_wan_event"`
|
||||||
UpnpLanEnabled bool `json:"upnp_lan_enabled"`
|
RequireMschapv2 bool `json:"require_mschapv2"`
|
||||||
UserGroupID string `json:"usergroup_id"`
|
RouteDistance int `json:"route_distance,omitempty"` // ^[1-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]$|^$
|
||||||
VLAN int `json:"vlan,omitempty"` // [2-9]|[1-9][0-9]{1,2}|[1-3][0-9]{3}|400[0-9]|^$
|
UpnpLanEnabled bool `json:"upnp_lan_enabled"`
|
||||||
VLANEnabled bool `json:"vlan_enabled"`
|
UserGroupID string `json:"usergroup_id"`
|
||||||
VPNClientDefaultRoute bool `json:"vpn_client_default_route"`
|
VLAN int `json:"vlan,omitempty"` // [2-9]|[1-9][0-9]{1,2}|[1-3][0-9]{3}|400[0-9]|^$
|
||||||
VPNClientPullDNS bool `json:"vpn_client_pull_dns"`
|
VLANEnabled bool `json:"vlan_enabled"`
|
||||||
VPNType string `json:"vpn_type,omitempty"` // auto|ipsec-vpn|openvpn-vpn|pptp-client|l2tp-server|pptp-server
|
VPNClientDefaultRoute bool `json:"vpn_client_default_route"`
|
||||||
WANDHCPv6PDSize int `json:"wan_dhcpv6_pd_size,omitempty"` // ^(4[89]|5[0-9]|6[0-4])$|^$
|
VPNClientPullDNS bool `json:"vpn_client_pull_dns"`
|
||||||
WANDNS1 string `json:"wan_dns1"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
VPNType string `json:"vpn_type,omitempty"` // auto|ipsec-vpn|openvpn-vpn|pptp-client|l2tp-server|pptp-server|uid-server
|
||||||
WANDNS2 string `json:"wan_dns2"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
WANDHCPOptions []Network_WANDHCPOptions `json:"wan_dhcp_options,omitempty"`
|
||||||
WANDNS3 string `json:"wan_dns3"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
WANDHCPv6PDSize int `json:"wan_dhcpv6_pd_size,omitempty"` // ^(4[89]|5[0-9]|6[0-4])$|^$
|
||||||
WANDNS4 string `json:"wan_dns4"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
WANDNS1 string `json:"wan_dns1"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
WANEgressQOS int `json:"wan_egress_qos,omitempty"` // [1-7]|^$
|
WANDNS2 string `json:"wan_dns2"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
WANGateway string `json:"wan_gateway"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
WANDNS3 string `json:"wan_dns3"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
WANGatewayV6 string `json:"wan_gateway_v6"` // ^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$|^$
|
WANDNS4 string `json:"wan_dns4"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
WANIP string `json:"wan_ip,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
WANEgressQOS int `json:"wan_egress_qos,omitempty"` // [1-7]|^$
|
||||||
WANIPV6 string `json:"wan_ipv6"` // ^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$|^$
|
WANGateway string `json:"wan_gateway"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||||
WANLoadBalanceType string `json:"wan_load_balance_type,omitempty"` // failover-only|weighted
|
WANGatewayV6 string `json:"wan_gateway_v6"` // ^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$|^$
|
||||||
WANLoadBalanceWeight int `json:"wan_load_balance_weight,omitempty"` // [1-9]|[1-9][0-9]
|
WANIP string `json:"wan_ip,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
||||||
WANNetmask string `json:"wan_netmask,omitempty"` // ^((128|192|224|240|248|252|254)\.0\.0\.0)|(255\.(((0|128|192|224|240|248|252|254)\.0\.0)|(255\.(((0|128|192|224|240|248|252|254)\.0)|255\.(0|128|192|224|240|248|252|254)))))$
|
WANIPV6 string `json:"wan_ipv6"` // ^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$|^$
|
||||||
WANNetworkGroup string `json:"wan_networkgroup,omitempty"` // WAN[2]?|WAN_LTE_FAILOVER
|
WANLoadBalanceType string `json:"wan_load_balance_type,omitempty"` // failover-only|weighted
|
||||||
WANPrefixlen int `json:"wan_prefixlen,omitempty"` // ^([1-9]|[1-8][0-9]|9[0-9]|1[01][0-9]|12[0-8])$|^$
|
WANLoadBalanceWeight int `json:"wan_load_balance_weight,omitempty"` // [1-9]|[1-9][0-9]
|
||||||
WANSmartqDownRate int `json:"wan_smartq_down_rate,omitempty"` // [0-9]{1,6}|1000000
|
WANNetmask string `json:"wan_netmask,omitempty"` // ^((128|192|224|240|248|252|254)\.0\.0\.0)|(255\.(((0|128|192|224|240|248|252|254)\.0\.0)|(255\.(((0|128|192|224|240|248|252|254)\.0)|255\.(0|128|192|224|240|248|252|254)))))$
|
||||||
WANSmartqEnabled bool `json:"wan_smartq_enabled"`
|
WANNetworkGroup string `json:"wan_networkgroup,omitempty"` // WAN[2]?|WAN_LTE_FAILOVER
|
||||||
WANSmartqUpRate int `json:"wan_smartq_up_rate,omitempty"` // [0-9]{1,6}|1000000
|
WANPrefixlen int `json:"wan_prefixlen,omitempty"` // ^([1-9]|[1-8][0-9]|9[0-9]|1[01][0-9]|12[0-8])$|^$
|
||||||
WANType string `json:"wan_type,omitempty"` // disabled|dhcp|static|pppoe
|
WANSmartqDownRate int `json:"wan_smartq_down_rate,omitempty"` // [0-9]{1,6}|1000000
|
||||||
WANTypeV6 string `json:"wan_type_v6,omitempty"` // disabled|dhcpv6|static
|
WANSmartqEnabled bool `json:"wan_smartq_enabled"`
|
||||||
WANUsername string `json:"wan_username,omitempty"` // [^"' ]+
|
WANSmartqUpRate int `json:"wan_smartq_up_rate,omitempty"` // [0-9]{1,6}|1000000
|
||||||
WANVLAN int `json:"wan_vlan,omitempty"` // [0-9]|[1-9][0-9]{1,2}|[1-3][0-9]{3}|40[0-8][0-9]|409[0-4]|^$
|
WANType string `json:"wan_type,omitempty"` // disabled|dhcp|static|pppoe
|
||||||
WANVLANEnabled bool `json:"wan_vlan_enabled"`
|
WANTypeV6 string `json:"wan_type_v6,omitempty"` // disabled|dhcpv6|static
|
||||||
XIPSecPreSharedKey string `json:"x_ipsec_pre_shared_key,omitempty"` // [^\"\' ]+
|
WANUsername string `json:"wan_username,omitempty"` // [^"' ]+
|
||||||
XOpenVPNSharedSecretKey string `json:"x_openvpn_shared_secret_key,omitempty"` // [0-9A-Fa-f]{512}
|
WANVLAN int `json:"wan_vlan,omitempty"` // [0-9]|[1-9][0-9]{1,2}|[1-3][0-9]{3}|40[0-8][0-9]|409[0-4]|^$
|
||||||
XPptpcPassword string `json:"x_pptpc_password,omitempty"` // [^\"\' ]+
|
WANVLANEnabled bool `json:"wan_vlan_enabled"`
|
||||||
XWANPassword string `json:"x_wan_password,omitempty"` // [^"' ]+
|
XIPSecPreSharedKey string `json:"x_ipsec_pre_shared_key,omitempty"` // [^\"\' ]+
|
||||||
|
XOpenVPNSharedSecretKey string `json:"x_openvpn_shared_secret_key,omitempty"` // [0-9A-Fa-f]{512}
|
||||||
|
XPptpcPassword string `json:"x_pptpc_password,omitempty"` // [^\"\' ]+
|
||||||
|
XWANPassword string `json:"x_wan_password,omitempty"` // [^"' ]+
|
||||||
|
}
|
||||||
|
|
||||||
|
type Network_WANDHCPOptions struct {
|
||||||
|
OptionNumber int `json:"optionNumber,omitempty"` // ([1-9]|[1-8][0-9]|9[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-4])
|
||||||
|
Value string `json:"value,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) listNetwork(ctx context.Context, site string) ([]Network, error) {
|
func (c *Client) listNetwork(ctx context.Context, site string) ([]Network, error) {
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ type PortConf struct {
|
|||||||
|
|
||||||
Autoneg bool `json:"autoneg"`
|
Autoneg bool `json:"autoneg"`
|
||||||
Dot1XCtrl string `json:"dot1x_ctrl,omitempty"` // auto|force_authorized|force_unauthorized|mac_based|multi_host
|
Dot1XCtrl string `json:"dot1x_ctrl,omitempty"` // auto|force_authorized|force_unauthorized|mac_based|multi_host
|
||||||
|
Dot1XIDleTimeout int `json:"dot1x_idle_timeout,omitempty"` // [0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]
|
||||||
EgressRateLimitKbps int `json:"egress_rate_limit_kbps,omitempty"` // 6[4-9]|[7-9][0-9]|[1-9][0-9]{2,6}
|
EgressRateLimitKbps int `json:"egress_rate_limit_kbps,omitempty"` // 6[4-9]|[7-9][0-9]|[1-9][0-9]{2,6}
|
||||||
EgressRateLimitKbpsEnabled bool `json:"egress_rate_limit_kbps_enabled"`
|
EgressRateLimitKbpsEnabled bool `json:"egress_rate_limit_kbps_enabled"`
|
||||||
Forward string `json:"forward,omitempty"` // all|native|customize|disabled
|
Forward string `json:"forward,omitempty"` // all|native|customize|disabled
|
||||||
|
|||||||
@@ -48,9 +48,14 @@ type SettingIps_Alerts struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SettingIps_DNSFilters struct {
|
type SettingIps_DNSFilters struct {
|
||||||
Filter string `json:"filter,omitempty"` // security|adult|family
|
AllowedSites []string `json:"allowed_sites,omitempty"` // ^[a-zA-Z0-9.-]+$|^$
|
||||||
NetworkID string `json:"network_id"`
|
BlockedSites []string `json:"blocked_sites,omitempty"` // ^[a-zA-Z0-9.-]+$|^$
|
||||||
Version string `json:"version,omitempty"` // v4|v6
|
BlockedTld []string `json:"blocked_tld,omitempty"` // ^[a-zA-Z0-9.-]+$|^$
|
||||||
|
Description string `json:"description,omitempty"`
|
||||||
|
Filter string `json:"filter,omitempty"` // none|security|adult|family
|
||||||
|
Name string `json:"name,omitempty"`
|
||||||
|
NetworkID string `json:"network_id"`
|
||||||
|
Version string `json:"version,omitempty"` // v4|v6
|
||||||
}
|
}
|
||||||
|
|
||||||
type SettingIps_Honeypot struct {
|
type SettingIps_Honeypot struct {
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ type SettingSuperMgmt struct {
|
|||||||
|
|
||||||
Key string `json:"key"`
|
Key string `json:"key"`
|
||||||
|
|
||||||
|
AnalyticsDisapprovedFor string `json:"analytics_disapproved_for,omitempty"`
|
||||||
AutoUpgrade bool `json:"auto_upgrade"`
|
AutoUpgrade bool `json:"auto_upgrade"`
|
||||||
AutobackupCronExpr string `json:"autobackup_cron_expr,omitempty"`
|
AutobackupCronExpr string `json:"autobackup_cron_expr,omitempty"`
|
||||||
AutobackupDays int `json:"autobackup_days,omitempty"`
|
AutobackupDays int `json:"autobackup_days,omitempty"`
|
||||||
@@ -67,7 +68,6 @@ type SettingSuperMgmt struct {
|
|||||||
OverrideInformHost bool `json:"override_inform_host"`
|
OverrideInformHost bool `json:"override_inform_host"`
|
||||||
StoreEnabled string `json:"store_enabled,omitempty"` // disabled|super-only|everyone
|
StoreEnabled string `json:"store_enabled,omitempty"` // disabled|super-only|everyone
|
||||||
TimeSeriesPerClientStatsEnabled bool `json:"time_series_per_client_stats_enabled"`
|
TimeSeriesPerClientStatsEnabled bool `json:"time_series_per_client_stats_enabled"`
|
||||||
UploadDebuggingInfoEnabled bool `json:"upload_debugging_info_enabled"`
|
|
||||||
XSshPassword string `json:"x_ssh_password,omitempty"`
|
XSshPassword string `json:"x_ssh_password,omitempty"`
|
||||||
XSshUsername string `json:"x_ssh_username,omitempty"`
|
XSshUsername string `json:"x_ssh_username,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,8 +23,10 @@ type WLAN struct {
|
|||||||
NoDelete bool `json:"attr_no_delete,omitempty"`
|
NoDelete bool `json:"attr_no_delete,omitempty"`
|
||||||
NoEdit bool `json:"attr_no_edit,omitempty"`
|
NoEdit bool `json:"attr_no_edit,omitempty"`
|
||||||
|
|
||||||
|
AuthCache bool `json:"auth_cache"`
|
||||||
BroadcastFilterEnabled bool `json:"bc_filter_enabled"`
|
BroadcastFilterEnabled bool `json:"bc_filter_enabled"`
|
||||||
BroadcastFilterList []string `json:"bc_filter_list,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
BroadcastFilterList []string `json:"bc_filter_list,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
||||||
|
BssTransition bool `json:"bss_transition"`
|
||||||
CountryBeacon bool `json:"country_beacon"`
|
CountryBeacon bool `json:"country_beacon"`
|
||||||
DPIEnabled bool `json:"dpi_enabled"`
|
DPIEnabled bool `json:"dpi_enabled"`
|
||||||
DPIgroupID string `json:"dpigroup_id"` // [\d\w]+|^$
|
DPIgroupID string `json:"dpigroup_id"` // [\d\w]+|^$
|
||||||
@@ -40,6 +42,7 @@ type WLAN struct {
|
|||||||
Hotspot2ConfID string `json:"hotspot2conf_id"`
|
Hotspot2ConfID string `json:"hotspot2conf_id"`
|
||||||
IappEnabled bool `json:"iapp_enabled"`
|
IappEnabled bool `json:"iapp_enabled"`
|
||||||
IsGuest bool `json:"is_guest"`
|
IsGuest bool `json:"is_guest"`
|
||||||
|
L2Isolation bool `json:"l2_isolation"`
|
||||||
MACFilterEnabled bool `json:"mac_filter_enabled"`
|
MACFilterEnabled bool `json:"mac_filter_enabled"`
|
||||||
MACFilterList []string `json:"mac_filter_list,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
MACFilterList []string `json:"mac_filter_list,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
||||||
MACFilterPolicy string `json:"mac_filter_policy,omitempty"` // allow|deny
|
MACFilterPolicy string `json:"mac_filter_policy,omitempty"` // allow|deny
|
||||||
@@ -59,7 +62,10 @@ type WLAN struct {
|
|||||||
NameCombineEnabled bool `json:"name_combine_enabled"`
|
NameCombineEnabled bool `json:"name_combine_enabled"`
|
||||||
NameCombineSuffix string `json:"name_combine_suffix,omitempty"` // .{0,8}
|
NameCombineSuffix string `json:"name_combine_suffix,omitempty"` // .{0,8}
|
||||||
No2GhzOui bool `json:"no2ghz_oui"`
|
No2GhzOui bool `json:"no2ghz_oui"`
|
||||||
|
P2P bool `json:"p2p"`
|
||||||
|
P2PCrossConnect bool `json:"p2p_cross_connect"`
|
||||||
Priority string `json:"priority,omitempty"` // medium|high|low
|
Priority string `json:"priority,omitempty"` // medium|high|low
|
||||||
|
ProxyArp bool `json:"proxy_arp"`
|
||||||
RADIUSDasEnabled bool `json:"radius_das_enabled"`
|
RADIUSDasEnabled bool `json:"radius_das_enabled"`
|
||||||
RADIUSMACAuthEnabled bool `json:"radius_mac_auth_enabled"`
|
RADIUSMACAuthEnabled bool `json:"radius_mac_auth_enabled"`
|
||||||
RADIUSMACaclEmptyPassword bool `json:"radius_macacl_empty_password"`
|
RADIUSMACaclEmptyPassword bool `json:"radius_macacl_empty_password"`
|
||||||
@@ -70,7 +76,8 @@ type WLAN struct {
|
|||||||
Schedule []string `json:"schedule,omitempty"` // (sun|mon|tue|wed|thu|fri|sat)(\-(sun|mon|tue|wed|thu|fri|sat))?\|([0-2][0-9][0-5][0-9])\-([0-2][0-9][0-5][0-9])
|
Schedule []string `json:"schedule,omitempty"` // (sun|mon|tue|wed|thu|fri|sat)(\-(sun|mon|tue|wed|thu|fri|sat))?\|([0-2][0-9][0-5][0-9])\-([0-2][0-9][0-5][0-9])
|
||||||
ScheduleEnabled bool `json:"schedule_enabled"`
|
ScheduleEnabled bool `json:"schedule_enabled"`
|
||||||
ScheduleReversed bool `json:"schedule_reversed"`
|
ScheduleReversed bool `json:"schedule_reversed"`
|
||||||
Security string `json:"security,omitempty"` // open|wpapsk|wep|wpaeap
|
Security string `json:"security,omitempty"` // open|wpapsk|wep|wpaeap|osen
|
||||||
|
TdlsProhibit bool `json:"tdls_prohibit"`
|
||||||
UapsdEnabled bool `json:"uapsd_enabled"`
|
UapsdEnabled bool `json:"uapsd_enabled"`
|
||||||
UserGroupID string `json:"usergroup_id"`
|
UserGroupID string `json:"usergroup_id"`
|
||||||
VLAN int `json:"vlan,omitempty"` // [2-9]|[1-9][0-9]{1,2}|[1-3][0-9]{3}|40[0-8][0-9]|409[0-5]|^$
|
VLAN int `json:"vlan,omitempty"` // [2-9]|[1-9][0-9]{1,2}|[1-3][0-9]{3}|40[0-8][0-9]|409[0-5]|^$
|
||||||
|
|||||||
Reference in New Issue
Block a user