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:
Mike Hansen
2021-02-06 08:51:02 -05:00
parent 469c5fefb5
commit 010251bffb

View File

@@ -35,6 +35,10 @@ public class OvsdbNodeConfig extends OvsdbDaoBase {
try {
ApNetworkConfiguration apNetworkConfig = (ApNetworkConfiguration) opensyncAPConfig.getApProfile()
.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());
Map<String, Value> updateColumns = new HashMap<>();
updateColumns.put("value", new Atom<>(apNetworkConfig.getNtpServer().getValue()));