mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-03 12:08:07 +00:00
WIFI-1488: Configured NTP Server not used by AP -- check to see if default NTP server has been set to null, don't send in that case
This commit is contained in:
@@ -35,6 +35,10 @@ public class OvsdbNodeConfig extends OvsdbDaoBase {
|
|||||||
try {
|
try {
|
||||||
ApNetworkConfiguration apNetworkConfig = (ApNetworkConfiguration) opensyncAPConfig.getApProfile()
|
ApNetworkConfiguration apNetworkConfig = (ApNetworkConfiguration) opensyncAPConfig.getApProfile()
|
||||||
.getDetails();
|
.getDetails();
|
||||||
|
if (apNetworkConfig.getNtpServer() == null || apNetworkConfig.getNtpServer().getValue() == null) {
|
||||||
|
LOG.info("Cannot configure NTP server to null value. {}", apNetworkConfig);
|
||||||
|
return;
|
||||||
|
}
|
||||||
LOG.debug("configureNtpServer update Node_Config to {}", apNetworkConfig.getNtpServer().getValue());
|
LOG.debug("configureNtpServer update Node_Config to {}", apNetworkConfig.getNtpServer().getValue());
|
||||||
Map<String, Value> updateColumns = new HashMap<>();
|
Map<String, Value> updateColumns = new HashMap<>();
|
||||||
updateColumns.put("value", new Atom<>(apNetworkConfig.getNtpServer().getValue()));
|
updateColumns.put("value", new Atom<>(apNetworkConfig.getNtpServer().getValue()));
|
||||||
|
|||||||
Reference in New Issue
Block a user