mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-11-04 04:27:59 +00:00 
			
		
		
		
	Static OSGW docker fix for align mapping of tip.wlan.ovsdb.wifi-device.radio with tip.wlan.ovsdb.wifi-iface.default_radio
This commit is contained in:
		@@ -45,11 +45,14 @@ OVSDB_IF_DEFAULT_RADIO_1="${OVSDB_IF_DEFAULT_RADIO_1:=home-ap-l50}"
 | 
				
			|||||||
echo $OVSDB_IF_DEFAULT_RADIO_1
 | 
					echo $OVSDB_IF_DEFAULT_RADIO_1
 | 
				
			||||||
OVSDB_IF_DEFAULT_RADIO_2="${OVSDB_IF_DEFAULT_RADIO_2:=home-ap-u50}"
 | 
					OVSDB_IF_DEFAULT_RADIO_2="${OVSDB_IF_DEFAULT_RADIO_2:=home-ap-u50}"
 | 
				
			||||||
echo $OVSDB_IF_DEFAULT_RADIO_2
 | 
					echo $OVSDB_IF_DEFAULT_RADIO_2
 | 
				
			||||||
OVSDB_DEVICE_DEFAULT_WAN_TYPE="${OVSDB_DEVICE_DEFAULT_WAN_NAME:=eth}"
 | 
					OVSDB_DEVICE_DEFAULT_WAN_TYPE="${OVSDB_DEVICE_DEFAULT_WAN_TYPE:=eth}"
 | 
				
			||||||
echo $OVSDB_DEVICE_DEFAULT_WAN
 | 
					echo $OVSDB_DEVICE_DEFAULT_WAN_TYPE
 | 
				
			||||||
OVSDB_DEVICE_DEFAULT_LAN_TYPE="${OVSDB_DEVICE_DEFAULT_LAN_TYPE:=br-lan}"
 | 
					OVSDB_DEVICE_DEFAULT_WAN_NAME="${OVSDB_DEVICE_DEFAULT_WAN_NAME:=eth1}"
 | 
				
			||||||
echo $OVSDB_DEVICE_DEFAULT_LAN
 | 
					echo $OVSDB_DEVICE_DEFAULT_WAN_NAME
 | 
				
			||||||
 | 
					OVSDB_DEVICE_DEFAULT_LAN_TYPE="${OVSDB_DEVICE_DEFAULT_LAN_TYPE:=bridge}"
 | 
				
			||||||
 | 
					echo $OVSDB_DEVICE_DEFAULT_LAN_TYPE
 | 
				
			||||||
OVSDB_DEVICE_DEFAULT_LAN_NAME="${OVSDB_DEVICE_DEFAULT_LAN_NAME:=lan}"
 | 
					OVSDB_DEVICE_DEFAULT_LAN_NAME="${OVSDB_DEVICE_DEFAULT_LAN_NAME:=lan}"
 | 
				
			||||||
 | 
					echo $OVSDB_DEVICE_DEFAULT_LAN_NAME
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo Reading AP configuration from $OVSDB_CONFIG_FILE
 | 
					echo Reading AP configuration from $OVSDB_CONFIG_FILE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -130,6 +133,7 @@ OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.radiusProfileFileName=$OVSDB_RADIUSPR
 | 
				
			|||||||
OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.locationFileName=$OVSDB_LOCATION_CONFIG_FILE"
 | 
					OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.locationFileName=$OVSDB_LOCATION_CONFIG_FILE"
 | 
				
			||||||
OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.wifi-iface.default_bridge=$OVSDB_IF_DEFAULT_BRIDGE"
 | 
					OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.wifi-iface.default_bridge=$OVSDB_IF_DEFAULT_BRIDGE"
 | 
				
			||||||
OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.wifi-iface.default_wan_type=$OVSDB_DEVICE_DEFAULT_WAN_TYPE"
 | 
					OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.wifi-iface.default_wan_type=$OVSDB_DEVICE_DEFAULT_WAN_TYPE"
 | 
				
			||||||
 | 
					OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.wifi-iface.default_wan_name=$OVSDB_DEVICE_DEFAULT_WAN_NAME"
 | 
				
			||||||
OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.wifi-iface.default_lan_type=$OVSDB_DEVICE_DEFAULT_LAN_TYPE"
 | 
					OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.wifi-iface.default_lan_type=$OVSDB_DEVICE_DEFAULT_LAN_TYPE"
 | 
				
			||||||
OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.wifi-iface.default_lan_name=$OVSDB_DEVICE_DEFAULT_LAN_NAME"
 | 
					OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.wifi-iface.default_lan_name=$OVSDB_DEVICE_DEFAULT_LAN_NAME"
 | 
				
			||||||
OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.wifi-iface.default_radio0=$OVSDB_IF_DEFAULT_RADIO_0"
 | 
					OVSDB_PROPS="$OVSDB_PROPS -Dtip.wlan.ovsdb.wifi-iface.default_radio0=$OVSDB_IF_DEFAULT_RADIO_0"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,6 +26,7 @@ OVSDB_PROPS+=" -Dtip.wlan.ovsdb.radiusProfileFileName=$OVSDB_RADIUSPROFILE_CONFI
 | 
				
			|||||||
OVSDB_PROPS+=" -Dtip.wlan.ovsdb.locationFileName=$OVSDB_LOCATION_CONFIG_FILE"
 | 
					OVSDB_PROPS+=" -Dtip.wlan.ovsdb.locationFileName=$OVSDB_LOCATION_CONFIG_FILE"
 | 
				
			||||||
OVSDB_PROPS+=" -Dtip.wlan.ovsdb.wifi-iface.default_bridge=$OVSDB_IF_DEFAULT_BRIDGE"
 | 
					OVSDB_PROPS+=" -Dtip.wlan.ovsdb.wifi-iface.default_bridge=$OVSDB_IF_DEFAULT_BRIDGE"
 | 
				
			||||||
OVSDB_PROPS+=" -Dtip.wlan.ovsdb.wifi-iface.default_wan_type=$OVSDB_DEVICE_DEFAULT_WAN_TYPE"
 | 
					OVSDB_PROPS+=" -Dtip.wlan.ovsdb.wifi-iface.default_wan_type=$OVSDB_DEVICE_DEFAULT_WAN_TYPE"
 | 
				
			||||||
 | 
					OVSDB_PROPS+=" -Dtip.wlan.ovsdb.wifi-iface.default_wan_name=$OVSDB_DEVICE_DEFAULT_WAN_NAME"
 | 
				
			||||||
OVSDB_PROPS+=" -Dtip.wlan.ovsdb.wifi-iface.default_lan_type=$OVSDB_DEVICE_DEFAULT_LAN_TYPE"
 | 
					OVSDB_PROPS+=" -Dtip.wlan.ovsdb.wifi-iface.default_lan_type=$OVSDB_DEVICE_DEFAULT_LAN_TYPE"
 | 
				
			||||||
OVSDB_PROPS+=" -Dtip.wlan.ovsdb.wifi-iface.default_lan_name=$OVSDB_DEVICE_DEFAULT_LAN_NAME"
 | 
					OVSDB_PROPS+=" -Dtip.wlan.ovsdb.wifi-iface.default_lan_name=$OVSDB_DEVICE_DEFAULT_LAN_NAME"
 | 
				
			||||||
OVSDB_PROPS+=" -Dtip.wlan.ovsdb.wifi-iface.default_radio0=$OVSDB_IF_DEFAULT_RADIO_0"
 | 
					OVSDB_PROPS+=" -Dtip.wlan.ovsdb.wifi-iface.default_radio0=$OVSDB_IF_DEFAULT_RADIO_0"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,5 +14,5 @@
 | 
				
			|||||||
    <stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="opensync-gateway-static-process"/>
 | 
					    <stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="opensync-gateway-static-process"/>
 | 
				
			||||||
    <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="opensync-gateway-static-process"/>
 | 
					    <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="opensync-gateway-static-process"/>
 | 
				
			||||||
    <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
 | 
					    <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.m2e.launchconfig.sourcepathProvider"/>
 | 
				
			||||||
    <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="--add-opens java.base/java.lang=ALL-UNNAMED

-Dssl.props=file://${project_loc:opensync-gateway-static-process}/src/main/resources/app/certs/ssl.properties
-Dtip.wlan.httpClientConfig=file://${project_loc:opensync-gateway-static-process}/src/main/resources/app/certs/httpClientConfig.json

-Djavax.net.ssl.keyStore=${tip_wlan_service_certs}/client_keystore.jks
-Djavax.net.ssl.keyStorePassword=mypassword
-Djavax.net.ssl.trustStore=${tip_wlan_service_certs}/truststore.jks
-Djavax.net.ssl.trustStorePassword=mypassword

-Dtip.wlan.ovsdb.managerAddr=${local_server_address}
-Dtip.wlan.ovsdb.listenPort=6640
-Dtip.wlan.ovsdb.redirector.listenPort=6643
-Dtip.wlan.ovsdb.timeoutSec=30
-Dtip.wlan.ovsdb.trustStore=${tip_wlan_service_certs}/truststore.jks
-Dtip.wlan.ovsdb.keyStore=${tip_wlan_service_certs}/server.pkcs12

-Dtip.wlan.ovsdb.customerEquipmentFileName=${project_loc:opensync-ext-static}/src/main/resources/EquipmentExample.json
-Dtip.wlan.ovsdb.apProfileFileName=${project_loc:opensync-ext-static}/src/main/resources/ProfileAPExample.json
-Dtip.wlan.ovsdb.ssidProfileFileName=${project_loc:opensync-ext-static}/src/main/resources/ProfileSsid.json
-Dtip.wlan.ovsdb.locationFileName=${project_loc:opensync-ext-static}/src/main/resources/LocationBuildingExample.json
-Dtip.wlan.ovsdb.radiusProfileFileName=${project_loc:opensync-ext-static}/src/main/resources/ProfileRadius.json
-Dtip.wlan.ovsdb.captiveProfileFileName=${project_loc:opensync-ext-static}/src/main/resources/ProfileCaptive.json
-Dtip.wlan.mqttBroker.address.internal=${local_server_address}
-Dtip.wlan.mqttBroker.address.external=${local_server_address}
-Dtip.wlan.mqttBroker.listenPort=1883
-Dspring.profiles.include=use_ssl,use_webtoken_auth,use_single_ds,RestTemplateConfiguration_X509_client_cert_auth,opensync_static_config,mqtt_receiver,ovsdb_redirector,ovsdb_manager"/>
 | 
					    <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="--add-opens java.base/java.lang=ALL-UNNAMED

-Dssl.props=file://${project_loc:opensync-gateway-static-process}/src/main/resources/app/certs/ssl.properties
-Dtip.wlan.httpClientConfig=file://${project_loc:opensync-gateway-static-process}/src/main/resources/app/certs/httpClientConfig.json

-Djavax.net.ssl.keyStore=${tip_wlan_service_certs}/client_keystore.jks
-Djavax.net.ssl.keyStorePassword=mypassword
-Djavax.net.ssl.trustStore=${tip_wlan_service_certs}/truststore.jks
-Djavax.net.ssl.trustStorePassword=mypassword

-Dtip.wlan.ovsdb.managerAddr=${local_server_address}
-Dtip.wlan.ovsdb.listenPort=6640
-Dtip.wlan.ovsdb.redirector.listenPort=6643
-Dtip.wlan.ovsdb.timeoutSec=30
-Dtip.wlan.ovsdb.trustStore=${tip_wlan_service_certs}/truststore.jks
-Dtip.wlan.ovsdb.keyStore=${tip_wlan_service_certs}/server.pkcs12

-Dtip.wlan.ovsdb.customerEquipmentFileName=${project_loc:opensync-ext-static}/src/main/resources/EquipmentExample.json
-Dtip.wlan.ovsdb.apProfileFileName=${project_loc:opensync-ext-static}/src/main/resources/ProfileAPExample.json
-Dtip.wlan.ovsdb.ssidProfileFileName=${project_loc:opensync-ext-static}/src/main/resources/ProfileSsid.json
-Dtip.wlan.ovsdb.locationFileName=${project_loc:opensync-ext-static}/src/main/resources/LocationBuildingExample.json
-Dtip.wlan.ovsdb.radiusProfileFileName=${project_loc:opensync-ext-static}/src/main/resources/ProfileRadius.json
-Dtip.wlan.ovsdb.captiveProfileFileName=${project_loc:opensync-ext-static}/src/main/resources/ProfileCaptive.json
-Dtip.wlan.mqttBroker.address.internal=${local_server_address}
-Dtip.wlan.mqttBroker.address.external=${local_server_address}
-Dtip.wlan.mqttBroker.listenPort=1883
-Dtip.wlan.ovsdb.wifi-iface.default_radio0=home-ap-24
-Dtip.wlan.ovsdb.wifi-iface.default_radio1=home-ap-l50
-Dtip.wlan.ovsdb.wifi-iface.default_radio2=home-ap-u50
-Dtip.wlan.ovsdb.wifi-iface.default_wan_type=eth
-Dtip.wlan.ovsdb.wifi-iface.default_wan_name=eth1
-Dtip.wlan.ovsdb.wifi-iface.default_lan_type=bridge
-Dtip.wlan.ovsdb.wifi-iface.default_lan_name=lan
-Dspring.profiles.include=use_ssl,use_webtoken_auth,use_single_ds,RestTemplateConfiguration_X509_client_cert_auth,opensync_static_config,mqtt_receiver,ovsdb_redirector,ovsdb_manager"/>
 | 
				
			||||||
</launchConfiguration>
 | 
					</launchConfiguration>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -106,9 +106,13 @@ public class OvsdbDao {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.wifi-iface.default_lan_type:bridge}")
 | 
					    @org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.wifi-iface.default_lan_type:bridge}")
 | 
				
			||||||
    public String defaultLanInterfaceType;
 | 
					    public String defaultLanInterfaceType;
 | 
				
			||||||
 | 
					    @org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.wifi-iface.default_lan_type:lan}")
 | 
				
			||||||
 | 
					    public String defaultLanInterfaceName;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    @org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.wifi-iface.default_wan_type:eth}")
 | 
					    @org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.wifi-iface.default_wan_type:eth}")
 | 
				
			||||||
    public String defaultWanInterfaceType;
 | 
					    public String defaultWanInterfaceType;
 | 
				
			||||||
 | 
					    @org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.wifi-iface.default_wan_name:eth1}")
 | 
				
			||||||
 | 
					    public String defaultWanInterfaceName;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    @org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.wifi-iface.default_radio0:home-ap-24}")
 | 
					    @org.springframework.beans.factory.annotation.Value("${tip.wlan.ovsdb.wifi-iface.default_radio0:home-ap-24}")
 | 
				
			||||||
    public String defaultRadio0;
 | 
					    public String defaultRadio0;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user