WIFI-2686: RADSEC: APs are running into Backoff with AP Proxy config

Signed-off-by: Mike Hansen <mike.hansen@connectus.ai>
This commit is contained in:
Mike Hansen
2021-06-19 17:38:23 -04:00
parent d617efbcc1
commit cc035e7fe1

View File

@@ -98,12 +98,14 @@ public class OvsdbRadiusProxyConfig extends OvsdbDaoBase {
for (RadiusProxyConfiguration rsc : ((ApNetworkConfiguration) apConfig.getApProfile().getDetails()).getRadiusProxyConfigurations()) { for (RadiusProxyConfiguration rsc : ((ApNetworkConfiguration) apConfig.getApProfile().getDetails()).getRadiusProxyConfigurations()) {
Map<String, Value> updateColumns = new HashMap<>(); Map<String, Value> updateColumns = new HashMap<>();
updateColumns.put("server", new Atom<>(rsc.getServer().getHostAddress())); updateColumns.put("server", new Atom<>(rsc.getServer().getHostAddress()));
getCertificateUrls(rsc, updateColumns);
updateColumns.put("radius_config_name", new Atom<>(rsc.getName())); updateColumns.put("radius_config_name", new Atom<>(rsc.getName()));
updateColumns.put("passphrase", new Atom<>(rsc.getPassphrase()));
updateColumns.put("port", new Atom<>(rsc.getPort())); updateColumns.put("port", new Atom<>(rsc.getPort()));
updateColumns.put("realm", Set.of(rsc.getRealm())); updateColumns.put("realm", Set.of(rsc.getRealm()));
updateColumns.put("radsec", new Atom<>(rsc.getUseRadSec())); updateColumns.put("radsec", new Atom<>(rsc.getUseRadSec()));
if (rsc.getUseRadSec()) {
getCertificateUrls(rsc, updateColumns);
updateColumns.put("passphrase", new Atom<>(rsc.getPassphrase()));
}
updateColumns.put("secret", new Atom<>(rsc.getSharedSecret())); updateColumns.put("secret", new Atom<>(rsc.getSharedSecret()));
if (rsc.getAcctServer() != null) { if (rsc.getAcctServer() != null) {
updateColumns.put("acct_server", new Atom<>(rsc.getAcctServer().getHostAddress())); updateColumns.put("acct_server", new Atom<>(rsc.getAcctServer().getHostAddress()));
@@ -113,8 +115,7 @@ public class OvsdbRadiusProxyConfig extends OvsdbDaoBase {
} }
if (rsc.getAcctPort() != null) { if (rsc.getAcctPort() != null) {
updateColumns.put("acct_port", new Atom<>(rsc.getAcctPort())); updateColumns.put("acct_port", new Atom<>(rsc.getAcctPort()));
} }
if( databaseSchema.getTables().get(radiusConfigDbTable).getColumns().containsKey("auto_discover") ){ if( databaseSchema.getTables().get(radiusConfigDbTable).getColumns().containsKey("auto_discover") ){
if (rsc.getUseRadSec() && rsc.getDynamicDiscovery()) { if (rsc.getUseRadSec() && rsc.getDynamicDiscovery()) {
// if useRadSec && dynamicDiscovery enabled, do not send server information // if useRadSec && dynamicDiscovery enabled, do not send server information
@@ -131,7 +132,6 @@ public class OvsdbRadiusProxyConfig extends OvsdbDaoBase {
updateColumns.put("auto_discover", new Atom<>(false)); updateColumns.put("auto_discover", new Atom<>(false));
} }
} }
Row row = new Row(updateColumns); Row row = new Row(updateColumns);
operations.add(new Insert(radiusConfigDbTable, row)); operations.add(new Insert(radiusConfigDbTable, row));
} }