mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-03 12:08:07 +00:00
Merge pull request #14 from Telecominfraproject/feature/NETEXP-485
Feature/NETEXP 485
This commit is contained in:
@@ -20,6 +20,11 @@ SSC_SERVER_HOST="${SSC_SERVER}"
|
|||||||
ALL_IN_ONE_HOST="${INTEGRATED_SERVER}"
|
ALL_IN_ONE_HOST="${INTEGRATED_SERVER}"
|
||||||
FILE_STORE_DIRECTORY="${FILE_STORE_DIRECTORY_INTERNAL:=/tmp/filestore}"
|
FILE_STORE_DIRECTORY="${FILE_STORE_DIRECTORY_INTERNAL:=/tmp/filestore}"
|
||||||
FILE_STORE_EXTERNAL_URL="${FILE_STORE_URL}"
|
FILE_STORE_EXTERNAL_URL="${FILE_STORE_URL}"
|
||||||
|
MQTT_BROKER_EXTERNAL_PORT="${MQTT_BROKER_EXTERNAL_PORT}"
|
||||||
|
OVSDB_EXTERNAL_PORT="${OVSDB_EXTERNAL_PORT}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
OVSDB_PROPS=" "
|
OVSDB_PROPS=" "
|
||||||
OVSDB_PROPS+=" -Dtip.wlan.ovsdb.managerAddr=$OVSDB_MANAGER_HOST"
|
OVSDB_PROPS+=" -Dtip.wlan.ovsdb.managerAddr=$OVSDB_MANAGER_HOST"
|
||||||
@@ -33,6 +38,8 @@ OVSDB_PROPS+=" -Dtip.wlan.ovsdb.configFileName=/app/opensync/config_2_ssids.json
|
|||||||
MQTT_PROPS=" "
|
MQTT_PROPS=" "
|
||||||
MQTT_PROPS+=" -Dtip.wlan.mqttBroker.address.internal=$MQTT_BROKER_HOST_INTERNAL"
|
MQTT_PROPS+=" -Dtip.wlan.mqttBroker.address.internal=$MQTT_BROKER_HOST_INTERNAL"
|
||||||
MQTT_PROPS+=" -Dtip.wlan.mqttBroker.address.external=$MQTT_BROKER_HOST_EXTERNAL"
|
MQTT_PROPS+=" -Dtip.wlan.mqttBroker.address.external=$MQTT_BROKER_HOST_EXTERNAL"
|
||||||
|
MQTT_PROPS+=" -Dtip.wlan.ovsdb.externalPort=$OVSDB_EXTERNAL_PORT"
|
||||||
|
MQTT_PROPS+=" -Dtip.wlan.mqttBroker.externalPort=$MQTT_BROKER_EXTERNAL_PORT"
|
||||||
MQTT_PROPS+=" -Dtip.wlan.mqttBroker.listenPort=1883"
|
MQTT_PROPS+=" -Dtip.wlan.mqttBroker.listenPort=1883"
|
||||||
|
|
||||||
LOGBACK_CONFIG_FILE="${LOGBACK_CONFIG_FILE:=/app/opensync/logback.xml}"
|
LOGBACK_CONFIG_FILE="${LOGBACK_CONFIG_FILE:=/app/opensync/logback.xml}"
|
||||||
|
|||||||
@@ -141,12 +141,18 @@ public class OvsdbDao {
|
|||||||
@org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.listenPort:6640}")
|
@org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.listenPort:6640}")
|
||||||
private int ovsdbListenPort;
|
private int ovsdbListenPort;
|
||||||
|
|
||||||
|
@org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.externalPort:6640}")
|
||||||
|
private int ovsdbExternalPort;
|
||||||
|
|
||||||
@org.springframework.beans.factory.annotation.Value("${tip.wlan.mqttBroker.address.external:testportal.123wlan.com}")
|
@org.springframework.beans.factory.annotation.Value("${tip.wlan.mqttBroker.address.external:testportal.123wlan.com}")
|
||||||
private String mqttBrokerAddress;
|
private String mqttBrokerAddress;
|
||||||
|
|
||||||
@org.springframework.beans.factory.annotation.Value("${tip.wlan.mqttBroker.listenPort:1883}")
|
@org.springframework.beans.factory.annotation.Value("${tip.wlan.mqttBroker.listenPort:1883}")
|
||||||
private int mqttBrokerListenPort;
|
private int mqttBrokerListenPort;
|
||||||
|
|
||||||
|
@org.springframework.beans.factory.annotation.Value("${tip.wlan.mqttBroker.externalPort:1883}")
|
||||||
|
private int mqttBrokerExternalPort;
|
||||||
|
|
||||||
@org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.timeoutSec:30}")
|
@org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.timeoutSec:30}")
|
||||||
private int ovsdbTimeoutSec;
|
private int ovsdbTimeoutSec;
|
||||||
|
|
||||||
@@ -564,7 +570,7 @@ public class OvsdbDao {
|
|||||||
String mqttClientName = OvsdbToWlanCloudTypeMappingUtility.getAlteredClientCnIfRequired(clientCn,
|
String mqttClientName = OvsdbToWlanCloudTypeMappingUtility.getAlteredClientCnIfRequired(clientCn,
|
||||||
incomingConnectNodeInfo, preventCnAlteration);
|
incomingConnectNodeInfo, preventCnAlteration);
|
||||||
newMqttSettings.put("topics", "/ap/" + mqttClientName + "/opensync");
|
newMqttSettings.put("topics", "/ap/" + mqttClientName + "/opensync");
|
||||||
newMqttSettings.put("port", "" + mqttBrokerListenPort);
|
newMqttSettings.put("port", "" + mqttBrokerExternalPort);
|
||||||
newMqttSettings.put("compress", "zlib");
|
newMqttSettings.put("compress", "zlib");
|
||||||
newMqttSettings.put("qos", "0");
|
newMqttSettings.put("qos", "0");
|
||||||
newMqttSettings.put("remote_log", "1");
|
newMqttSettings.put("remote_log", "1");
|
||||||
@@ -776,7 +782,7 @@ public class OvsdbDao {
|
|||||||
operations.clear();
|
operations.clear();
|
||||||
Map<String, Value> updateColumns = new HashMap<>();
|
Map<String, Value> updateColumns = new HashMap<>();
|
||||||
|
|
||||||
updateColumns.put("manager_addr", new Atom<>("ssl:" + managerIpAddr + ":" + ovsdbListenPort));
|
updateColumns.put("manager_addr", new Atom<>("ssl:" + managerIpAddr + ":" + ovsdbExternalPort));
|
||||||
|
|
||||||
row = new Row(updateColumns);
|
row = new Row(updateColumns);
|
||||||
operations.add(new Update(awlanNodeDbTable, row));
|
operations.add(new Update(awlanNodeDbTable, row));
|
||||||
|
|||||||
Reference in New Issue
Block a user