private static boolean DEFAULT_LISP_OVERLAY_ENABLED = false;
private static boolean DEFAULT_LISP_MAPREGISTER_ENABLED = true;
+ private static boolean DEFAULT_L3_FLAT_ENABLED = false;
private IpAddress odlTenantIp;
private boolean lispOverlayEnabled = DEFAULT_LISP_OVERLAY_ENABLED;
private boolean lispMapRegisterEnbled = DEFAULT_LISP_MAPREGISTER_ENABLED;
+ private boolean l3FlatEnabled = DEFAULT_L3_FLAT_ENABLED;
+
public static String ODL_TENANT_IP = "odl.ip.tenant";
public static String LISP_OVERLAY_ENABLED = "gbp.lisp.enabled";
public static String LISP_MAPREGISTER_ENABLED = "vpp.lisp.mapregister.enabled";
+ public static String L3_FLAT_ENABLED = "vpp.l3.flat.enabled";
private static ConfigUtil INSTANCE = new ConfigUtil();
}
}
+ public void configL3FlatEnabled(String configStr) {
+ if (configStr == null) {
+ l3FlatEnabled = DEFAULT_L3_FLAT_ENABLED;
+ LOG.debug("Configuration variable {} is being unset. Setting the variable to {}",
+ L3_FLAT_ENABLED, DEFAULT_L3_FLAT_ENABLED);
+ }
+
+ configStr = configStr.trim();
+
+ if (configStr.equalsIgnoreCase("true")) {
+ l3FlatEnabled = true;
+ } else {
+ l3FlatEnabled = false;
+ }
+ }
+
public IpAddress getOdlTenantIp() {
return odlTenantIp;
}
public boolean isLispMapRegisterEnbled() {
return lispMapRegisterEnbled;
}
+
+ public boolean isL3FlatEnabled() {
+ return l3FlatEnabled;
+ }
}
mrConfig -> configUtil.configureMapRegister((String) mrConfig));
configMethods.put(ConfigUtil.LISP_OVERLAY_ENABLED,
overlayConfig -> configUtil.configureLispOverlayEnabled((String) overlayConfig));
+ configMethods.put(ConfigUtil.L3_FLAT_ENABLED,
+ l3FlatConfig -> configUtil.configL3FlatEnabled((String) l3FlatConfig));
}
}
# Valid config: true/false
# Required config: gbp.lisp.enabled is set to be true.
# Default value: true
-vpp.lisp.mapregister.enabled = true
\ No newline at end of file
+vpp.lisp.mapregister.enabled = true
+
+# This property determines whether a flat l3 overlay will created.
+# If true, there will not be any vxlan involved for L2. There will
+# not be any L2 broadcast domain. All VMs will communicate via L3
+# only.
+# Valid config: true/false
+# Required config: gbp.lisp.enabled is set to be true.
+# Default value: true
+vpp.l3.flat.enabled = true
\ No newline at end of file