mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-30 02:02:36 +00:00
Compare commits
10 Commits
v3.0.2-RC1
...
WIFI-13597
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ae0b99f55 | ||
|
|
d7e05eac60 | ||
|
|
3b8a8bafff | ||
|
|
20785d82ce | ||
|
|
1327b29d7b | ||
|
|
226cd3e9e9 | ||
|
|
de512f0e2c | ||
|
|
7a845e2f8c | ||
|
|
b0f925a7c0 | ||
|
|
984c8fafac |
@@ -1,5 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.13)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
project(owprov VERSION 3.0.2)
|
project(owprov VERSION 3.1.0)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ fullnameOverride: ""
|
|||||||
images:
|
images:
|
||||||
owprov:
|
owprov:
|
||||||
repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owprov
|
repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owprov
|
||||||
tag: v3.0.2-RC1
|
tag: main
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
# regcred:
|
# regcred:
|
||||||
# registry: tip-tip-wlan-cloud-ucentral.jfrog.io
|
# registry: tip-tip-wlan-cloud-ucentral.jfrog.io
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ static const std::vector<std::string> GitJSONSchemaURLs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static std::string DefaultAPSchema = R"foo(
|
static std::string DefaultAPSchema = R"foo(
|
||||||
|
|
||||||
{
|
{
|
||||||
"$id": "https://openwrt.org/ucentral.schema.json",
|
"$id": "https://openwrt.org/ucentral.schema.json",
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
@@ -354,14 +353,6 @@ static std::string DefaultAPSchema = R"foo(
|
|||||||
10000
|
10000
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"duplex": {
|
|
||||||
"description": "The duplex mode that shall be forced.",
|
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
|
||||||
"half",
|
|
||||||
"full"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"enabled": {
|
"enabled": {
|
||||||
"description": "This allows forcing the port to down state by default.",
|
"description": "This allows forcing the port to down state by default.",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@@ -490,7 +481,59 @@ static std::string DefaultAPSchema = R"foo(
|
|||||||
"bss-color": {
|
"bss-color": {
|
||||||
"description": "This enables BSS Coloring on the PHY. setting it to 0 disables the feature 1-63 sets the color and 64 will make hostapd pick a random color.",
|
"description": "This enables BSS Coloring on the PHY. setting it to 0 disables the feature 1-63 sets the color and 64 will make hostapd pick a random color.",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 64
|
"minimum": 0,
|
||||||
|
"maximum": 64,
|
||||||
|
"default": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"radio.he-6ghz": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"power-type": {
|
||||||
|
"description": "This config is to set the 6 GHz Access Point type",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"indoor-power-indoor",
|
||||||
|
"standard-power",
|
||||||
|
"very-low-power"
|
||||||
|
],
|
||||||
|
"default": "very-low-power"
|
||||||
|
},
|
||||||
|
"controller": {
|
||||||
|
"description": "The URL of the AFC controller that the AP shall connect to.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ca-certificate": {
|
||||||
|
"description": "The CA of the server. This enables mTLS.",
|
||||||
|
"type": "string",
|
||||||
|
"format": "uc-base64"
|
||||||
|
},
|
||||||
|
"serial-number": {
|
||||||
|
"description": "The serial number that the AP shall send to the AFC controller.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"certificate-ids": {
|
||||||
|
"description": "The certificate IDs that the AP shall send to the AFC controller.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"minimum-power": {
|
||||||
|
"description": "The minimum power that the AP shall request from to the AFC controller.",
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"frequency-ranges": {
|
||||||
|
"description": "The list of frequency ranges that the AP shall request from to the AFC controller.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"operating-classes": {
|
||||||
|
"description": "The list of frequency ranges that the AP shall request from to the AFC controller.",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -635,6 +678,9 @@ static std::string DefaultAPSchema = R"foo(
|
|||||||
"he-settings": {
|
"he-settings": {
|
||||||
"$ref": "#/$defs/radio.he"
|
"$ref": "#/$defs/radio.he"
|
||||||
},
|
},
|
||||||
|
"he-6ghz-settings": {
|
||||||
|
"$ref": "#/$defs/radio.he-6ghz"
|
||||||
|
},
|
||||||
"hostapd-iface-raw": {
|
"hostapd-iface-raw": {
|
||||||
"description": "This array allows passing raw hostapd.conf lines.",
|
"description": "This array allows passing raw hostapd.conf lines.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
@@ -784,8 +830,19 @@ static std::string DefaultAPSchema = R"foo(
|
|||||||
},
|
},
|
||||||
"use-dns": {
|
"use-dns": {
|
||||||
"description": "The DNS server sent to clients as DHCP option 6.",
|
"description": "The DNS server sent to clients as DHCP option 6.",
|
||||||
"type": "string",
|
"anyOf": [
|
||||||
"format": "uc-ip"
|
{
|
||||||
|
"type": "string",
|
||||||
|
"format": "ipv4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "ipv4"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1313,8 +1370,7 @@ static std::string DefaultAPSchema = R"foo(
|
|||||||
"domain-identifier": {
|
"domain-identifier": {
|
||||||
"description": "Mobility Domain identifier (dot11FTMobilityDomainID, MDID).",
|
"description": "Mobility Domain identifier (dot11FTMobilityDomainID, MDID).",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 4,
|
"format": "uc-mobility",
|
||||||
"minLength": 4,
|
|
||||||
"examples": [
|
"examples": [
|
||||||
"abcd"
|
"abcd"
|
||||||
]
|
]
|
||||||
@@ -3701,6 +3757,42 @@ static std::string DefaultAPSchema = R"foo(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"service.fingerprint": {
|
||||||
|
"description": "This section can be used to configure device fingerprinting.",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"mode": {
|
||||||
|
"description": "Enable this option if you would like to enable the MDNS server on the unit.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"polled",
|
||||||
|
"final",
|
||||||
|
"raw-data"
|
||||||
|
],
|
||||||
|
"default": "final"
|
||||||
|
},
|
||||||
|
"minimum-age": {
|
||||||
|
"description": "The minimum age a fingerprint must have before it is reported.",
|
||||||
|
"type": "number",
|
||||||
|
"default": 60
|
||||||
|
},
|
||||||
|
"maximum-age": {
|
||||||
|
"description": "The age at which fingerprints get flushed from the local state.",
|
||||||
|
"type": "number",
|
||||||
|
"default": 60
|
||||||
|
},
|
||||||
|
"periodicity": {
|
||||||
|
"description": "This value defines the period at which entries get reported.",
|
||||||
|
"type": "number",
|
||||||
|
"default": 600
|
||||||
|
},
|
||||||
|
"allow-wan": {
|
||||||
|
"description": "Allow fingerprinting devices found on the WAN port.",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"service": {
|
"service": {
|
||||||
"description": "This section describes all of the services that may be present on the AP. Each service is then referenced via its name inside an interface, ssid, ...",
|
"description": "This section describes all of the services that may be present on the AP. Each service is then referenced via its name inside an interface, ssid, ...",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -3770,6 +3862,9 @@ static std::string DefaultAPSchema = R"foo(
|
|||||||
},
|
},
|
||||||
"rrm": {
|
"rrm": {
|
||||||
"$ref": "#/$defs/service.rrm"
|
"$ref": "#/$defs/service.rrm"
|
||||||
|
},
|
||||||
|
"fingerprint": {
|
||||||
|
"$ref": "#/$defs/service.fingerprint"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -107,7 +107,16 @@ namespace OpenWifi {
|
|||||||
NewMessage.partition(0);
|
NewMessage.partition(0);
|
||||||
NewMessage.payload(Msg->Payload());
|
NewMessage.payload(Msg->Payload());
|
||||||
Producer.produce(NewMessage);
|
Producer.produce(NewMessage);
|
||||||
Producer.flush();
|
if (Queue_.size() < 100) {
|
||||||
|
// use flush when internal queue is lightly loaded, i.e. flush after each
|
||||||
|
// message
|
||||||
|
Producer.flush();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// use poll when internal queue is loaded to allow messages to be sent in
|
||||||
|
// batches
|
||||||
|
Producer.poll((std::chrono::milliseconds) 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (const cppkafka::HandleException &E) {
|
} catch (const cppkafka::HandleException &E) {
|
||||||
poco_warning(Logger_,
|
poco_warning(Logger_,
|
||||||
@@ -117,8 +126,13 @@ namespace OpenWifi {
|
|||||||
} catch (...) {
|
} catch (...) {
|
||||||
poco_error(Logger_, "std::exception");
|
poco_error(Logger_, "std::exception");
|
||||||
}
|
}
|
||||||
|
if (Queue_.size() == 0) {
|
||||||
|
// message queue is empty, flush all previously sent messages
|
||||||
|
Producer.flush();
|
||||||
|
}
|
||||||
Note = Queue_.waitDequeueNotification();
|
Note = Queue_.waitDequeueNotification();
|
||||||
}
|
}
|
||||||
|
Producer.flush();
|
||||||
poco_information(Logger_, "Stopped...");
|
poco_information(Logger_, "Stopped...");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,4 +338,4 @@ namespace OpenWifi {
|
|||||||
partitions.front().get_partition()));
|
partitions.front().get_partition()));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace OpenWifi
|
} // namespace OpenWifi
|
||||||
|
|||||||
Reference in New Issue
Block a user