Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support managed gateway capabilities #7439

Draft
wants to merge 8 commits into
base: v3.34
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions api/ttn/lorawan/v3/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@
- [Message `ListGatewaysRequest`](#ttn.lorawan.v3.ListGatewaysRequest)
- [Message `ListGatewaysRequest.Filter`](#ttn.lorawan.v3.ListGatewaysRequest.Filter)
- [Message `ManagedGateway`](#ttn.lorawan.v3.ManagedGateway)
- [Message `ManagedGateway.Capabilities`](#ttn.lorawan.v3.ManagedGateway.Capabilities)
- [Message `ManagedGatewayCellularBackhaul`](#ttn.lorawan.v3.ManagedGatewayCellularBackhaul)
- [Message `ManagedGatewayControllerConnection`](#ttn.lorawan.v3.ManagedGatewayControllerConnection)
- [Message `ManagedGatewayEthernetBackhaul`](#ttn.lorawan.v3.ManagedGatewayEthernetBackhaul)
Expand Down Expand Up @@ -5441,6 +5442,7 @@ Filter gateways by fields.
| ----- | ---- | ----- | ----------- |
| `ids` | [`GatewayIdentifiers`](#ttn.lorawan.v3.GatewayIdentifiers) | | |
| `version_ids` | [`GatewayVersionIdentifiers`](#ttn.lorawan.v3.GatewayVersionIdentifiers) | | |
| `capabilities` | [`ManagedGateway.Capabilities`](#ttn.lorawan.v3.ManagedGateway.Capabilities) | | |
| `cellular_imei` | [`string`](#string) | | |
| `cellular_imsi` | [`string`](#string) | | |
| `wifi_mac_address` | [`bytes`](#bytes) | | |
Expand All @@ -5460,6 +5462,19 @@ Filter gateways by fields.
| `wifi_profile_id` | <p>`string.uuid`: `true`</p> |
| `ethernet_profile_id` | <p>`string.uuid`: `true`</p> |

### <a name="ttn.lorawan.v3.ManagedGateway.Capabilities">Message `ManagedGateway.Capabilities`</a>

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `wifi_2_4_ghz` | [`bool`](#bool) | | |
| `wifi_5_ghz` | [`bool`](#bool) | | |
| `scan_wifi_access_points` | [`bool`](#bool) | | |
| `ethernet` | [`bool`](#bool) | | |
| `cellular` | [`bool`](#bool) | | |
| `battery` | [`bool`](#bool) | | |
| `lora_8ch_concentrator` | [`bool`](#bool) | | |
| `firmware_update` | [`bool`](#bool) | | |

### <a name="ttn.lorawan.v3.ManagedGatewayCellularBackhaul">Message `ManagedGatewayCellularBackhaul`</a>

| Field | Type | Label | Description |
Expand Down
35 changes: 35 additions & 0 deletions api/ttn/lorawan/v3/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -18790,6 +18790,35 @@
],
"default": "AT_MOST_ONCE"
},
"ManagedGatewayCapabilities": {
"type": "object",
"properties": {
"wifi_2_4_ghz": {
"type": "boolean"
},
"wifi_5_ghz": {
"type": "boolean"
},
"scan_wifi_access_points": {
"type": "boolean"
},
"ethernet": {
"type": "boolean"
},
"cellular": {
"type": "boolean"
},
"battery": {
"type": "boolean"
},
"lora_8ch_concentrator": {
"type": "boolean"
},
"firmware_update": {
"type": "boolean"
}
}
},
"ManagedGatewayConfigurationServiceScanWiFiAccessPointsBody": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -26744,6 +26773,9 @@
"version_ids": {
"$ref": "#/definitions/v3GatewayVersionIdentifiers"
},
"capabilities": {
"$ref": "#/definitions/ManagedGatewayCapabilities"
},
"cellular_imei": {
"type": "string"
},
Expand Down Expand Up @@ -26803,6 +26835,9 @@
"version_ids": {
"$ref": "#/definitions/v3GatewayVersionIdentifiers"
},
"capabilities": {
"$ref": "#/definitions/ManagedGatewayCapabilities"
},
"cellular_imei": {
"type": "string"
},
Expand Down
16 changes: 16 additions & 0 deletions api/ttn/lorawan/v3/gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,22 @@ message ManagedGateway {
];
GatewayVersionIdentifiers version_ids = 2;

message Capabilities {
option (thethings.flags.message) = {
select: true
set: true
};
bool wifi_2_4_ghz = 1;
bool wifi_5_ghz = 2;
bool scan_wifi_access_points = 3;
bool ethernet = 4;
bool cellular = 5;
bool battery = 6;
bool lora_8ch_concentrator = 7;
bool firmware_update = 8;
}
Capabilities capabilities = 9;

string cellular_imei = 3 [(validate.rules).string = {
pattern: "^[0-9]{15}$"
ignore_empty: true
Expand Down
Loading
Loading