Updated types to 5.14.23
This commit is contained in:
committed by
Paul Tyng
parent
bee58f48d4
commit
fa5012f42a
@@ -23,48 +23,61 @@ type Hotspot2Conf struct {
|
||||
NoDelete bool `json:"attr_no_delete,omitempty"`
|
||||
NoEdit bool `json:"attr_no_edit,omitempty"`
|
||||
|
||||
ApIsolate bool `json:"ap_isolate"`
|
||||
Capab []Hotspot2Conf_Capab `json:"capab,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
|
||||
DisableDgaf bool `json:"disable_dgaf"`
|
||||
DomainNameList []string `json:"domain_name_list,omitempty"` // .{1,128}
|
||||
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
|
||||
Hessid string `json:"hessid"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$|^$
|
||||
Icons []Hotspot2Conf_Icons `json:"icons,omitempty"`
|
||||
MetricsDownlinkLoad int `json:"metrics_downlink_load,omitempty"`
|
||||
MetricsDownlinkSpeed int `json:"metrics_downlink_speed,omitempty"`
|
||||
MetricsInfo string `json:"metrics_info,omitempty"` // [0-9A-Fa-f]{1,2}
|
||||
MetricsMeasurement int `json:"metrics_measurement,omitempty"`
|
||||
MetricsStatus bool `json:"metrics_status"`
|
||||
MetricsUplinkLoad int `json:"metrics_uplink_load,omitempty"`
|
||||
MetricsUplinkSpeed int `json:"metrics_uplink_speed,omitempty"`
|
||||
NaiRealmList []Hotspot2Conf_NaiRealmList `json:"nai_realm_list,omitempty"`
|
||||
Name string `json:"name,omitempty"` // .{1,128}
|
||||
NetworkAccessAsra bool `json:"network_access_asra"`
|
||||
NetworkAccessEsr bool `json:"network_access_esr"`
|
||||
NetworkAccessInternet bool `json:"network_access_internet"`
|
||||
NetworkAccessUesa bool `json:"network_access_uesa"`
|
||||
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"`
|
||||
P2P bool `json:"p2p"`
|
||||
ProxyArp bool `json:"proxy_arp"`
|
||||
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"`
|
||||
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
|
||||
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"`
|
||||
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
|
||||
DisableDgaf bool `json:"disable_dgaf"`
|
||||
DomainNameList []string `json:"domain_name_list,omitempty"` // .{1,128}
|
||||
FriendlyName []Hotspot2Conf_FriendlyName `json:"friendly_name,omitempty"`
|
||||
GasAdvanced bool `json:"gas_advanced"`
|
||||
GasComebackDelay int `json:"gas_comeback_delay,omitempty"`
|
||||
GasFragLimit int `json:"gas_frag_limit,omitempty"`
|
||||
Hessid string `json:"hessid"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$|^$
|
||||
HessidUsed bool `json:"hessid_used"`
|
||||
IPaddrTypeAvailV4 int `json:"ipaddr_type_avail_v4,omitempty"` // 0|1|2|3|4|5|6|7
|
||||
IPaddrTypeAvailV6 int `json:"ipaddr_type_avail_v6,omitempty"` // 0|1|2
|
||||
Icons []Hotspot2Conf_Icons `json:"icons,omitempty"`
|
||||
MetricsDownlinkLoad int `json:"metrics_downlink_load,omitempty"`
|
||||
MetricsDownlinkLoadSet bool `json:"metrics_downlink_load_set"`
|
||||
MetricsDownlinkSpeed int `json:"metrics_downlink_speed,omitempty"`
|
||||
MetricsDownlinkSpeedSet bool `json:"metrics_downlink_speed_set"`
|
||||
MetricsInfoAtCapacity bool `json:"metrics_info_at_capacity"`
|
||||
MetricsInfoLinkStatus string `json:"metrics_info_link_status,omitempty"` // up|down|test
|
||||
MetricsInfoSymmetric bool `json:"metrics_info_symmetric"`
|
||||
MetricsMeasurement int `json:"metrics_measurement,omitempty"`
|
||||
MetricsMeasurementSet bool `json:"metrics_measurement_set"`
|
||||
MetricsStatus bool `json:"metrics_status"`
|
||||
MetricsUplinkLoad int `json:"metrics_uplink_load,omitempty"`
|
||||
MetricsUplinkLoadSet bool `json:"metrics_uplink_load_set"`
|
||||
MetricsUplinkSpeed int `json:"metrics_uplink_speed,omitempty"`
|
||||
MetricsUplinkSpeedSet bool `json:"metrics_uplink_speed_set"`
|
||||
NaiRealmList []Hotspot2Conf_NaiRealmList `json:"nai_realm_list,omitempty"`
|
||||
Name string `json:"name,omitempty"` // .{1,128}
|
||||
NetworkAccessAsra bool `json:"network_access_asra"`
|
||||
NetworkAccessEsr bool `json:"network_access_esr"`
|
||||
NetworkAccessInternet bool `json:"network_access_internet"`
|
||||
NetworkAccessUesa bool `json:"network_access_uesa"`
|
||||
NetworkAuthType int `json:"network_auth_type,omitempty"` // -1|0|1|2|3
|
||||
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 {
|
||||
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}
|
||||
Protocol string `json:"protocol,omitempty"` // icmp|tcp_udp|tcp|udp
|
||||
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|esp
|
||||
Status string `json:"status,omitempty"` // closed|open|unknown
|
||||
}
|
||||
|
||||
@@ -137,7 +150,8 @@ type Hotspot2Conf_RoamingConsortiumList struct {
|
||||
|
||||
type Hotspot2Conf_VenueName struct {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user