diff --git a/opensync-gateway/src/main/java/com/telecominfraproject/wlan/opensync/ovsdb/dao/OvsdbDao.java b/opensync-gateway/src/main/java/com/telecominfraproject/wlan/opensync/ovsdb/dao/OvsdbDao.java index dd81399..3733e11 100644 --- a/opensync-gateway/src/main/java/com/telecominfraproject/wlan/opensync/ovsdb/dao/OvsdbDao.java +++ b/opensync-gateway/src/main/java/com/telecominfraproject/wlan/opensync/ovsdb/dao/OvsdbDao.java @@ -3486,6 +3486,7 @@ public class OvsdbDao { Set> domainNames = new HashSet<>(); StringBuffer mccMncBuffer = new StringBuffer(); Set> naiRealms = new HashSet<>(); + Set> roamingOis = new HashSet<>(); for (Profile provider : providerList) { Hotspot20IdProviderProfile providerProfile = (Hotspot20IdProviderProfile) provider .getDetails(); @@ -3493,6 +3494,11 @@ public class OvsdbDao { Hotspot20OsuProviders hotspot2OsuProviders = osuProviders .get(providerProfile.getOsuServerUri()); + StringBuffer roamingOiOctets = new StringBuffer(); + providerProfile.getRoamingOi().stream().forEach(o -> { + roamingOiOctets.append(Byte.toString(o)); + }); + roamingOis.add(new Atom<>(roamingOiOctets.toString())); osuProvidersUuids.add(hotspot2OsuProviders.uuid); osuIconUuids.addAll(hotspot2OsuProviders.osuIcons); domainNames.add(new Atom<>(providerProfile.getDomainName())); @@ -3513,6 +3519,10 @@ public class OvsdbDao { rowColumns.put("mcc_mnc", new Atom<>(mccMncString)); + com.vmware.ovsdb.protocol.operation.notation.Set roamingOiSet = com.vmware.ovsdb.protocol.operation.notation.Set + .of(roamingOis); + rowColumns.put("roaming_oi", roamingOiSet); + com.vmware.ovsdb.protocol.operation.notation.Set naiRealmsSet = com.vmware.ovsdb.protocol.operation.notation.Set .of(naiRealms); rowColumns.put("nai_realm", naiRealmsSet); @@ -3540,6 +3550,8 @@ public class OvsdbDao { rowColumns.put("osen", new Atom<>(operatorProfile.isServerOnlyAuthenticatedL2EncryptionNetwork())); + rowColumns.put("tos", new Atom<>(hs2Profile.getTermsAndConditionsFile().getApExportUrl())); + Set> operatorFriendlyName = new HashSet<>(); operatorProfile.getOperatorFriendlyName().stream() .forEach(c -> operatorFriendlyName.add(new Atom<>(c.getAsDuple())));