mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-03 12:08:07 +00:00
Wifi-1004: Provision gre_ifname, gre_local_inet_addr, gre_remote_inet_addr, gre_remote_mac_addr on AP -- remove hardcoded 'wan' for parent if_name
This commit is contained in:
@@ -3274,7 +3274,7 @@ public class OvsdbDao {
|
|||||||
Map<String, Value> tableColumns = new HashMap<>();
|
Map<String, Value> tableColumns = new HashMap<>();
|
||||||
|
|
||||||
GreTunnelProfile details = (GreTunnelProfile) greTunnelProfile.getDetails();
|
GreTunnelProfile details = (GreTunnelProfile) greTunnelProfile.getDetails();
|
||||||
tableColumns.put("gre_ifname", new Atom<>(defaultWanInterfaceName));
|
tableColumns.put("gre_ifname", new Atom<>(details.getGreParentIfName()));
|
||||||
tableColumns.put("gre_local_inet_addr", new Atom<>(details.getGreLocalInetAddr().getHostAddress()));
|
tableColumns.put("gre_local_inet_addr", new Atom<>(details.getGreLocalInetAddr().getHostAddress()));
|
||||||
tableColumns.put("gre_remote_inet_addr", new Atom<>(details.getGreRemoteInetAddr().getHostAddress()));
|
tableColumns.put("gre_remote_inet_addr", new Atom<>(details.getGreRemoteInetAddr().getHostAddress()));
|
||||||
if (details.getGreRemoteMacAddr() != null) {
|
if (details.getGreRemoteMacAddr() != null) {
|
||||||
@@ -3375,6 +3375,7 @@ public class OvsdbDao {
|
|||||||
tableColumns.put("dhcp_sniff", new Atom<>(true));
|
tableColumns.put("dhcp_sniff", new Atom<>(true));
|
||||||
tableColumns.put("ip_assign_scheme", new Atom<>(parentWanInterface.ipAssignScheme));
|
tableColumns.put("ip_assign_scheme", new Atom<>(parentWanInterface.ipAssignScheme));
|
||||||
tableColumns.put("NAT", new Atom<>(parentWanInterface.nat));
|
tableColumns.put("NAT", new Atom<>(parentWanInterface.nat));
|
||||||
|
|
||||||
tableColumns.put("mtu", new Atom<>(1500));
|
tableColumns.put("mtu", new Atom<>(1500));
|
||||||
|
|
||||||
row = new Row(tableColumns);
|
row = new Row(tableColumns);
|
||||||
|
|||||||
Reference in New Issue
Block a user