the default sync host should be null, otherwise while not config sync host, the unprovision process will throw exception
Change-Id: I09f62d8bbee3c898d24dee893df51b0cbd625120
diff --git a/src/main/java/org/opencord/cordmcast/CordMcast.java b/src/main/java/org/opencord/cordmcast/CordMcast.java
index 0a0feeb..c965476 100644
--- a/src/main/java/org/opencord/cordmcast/CordMcast.java
+++ b/src/main/java/org/opencord/cordmcast/CordMcast.java
@@ -152,7 +152,7 @@
@Property(name = "syncHost", value = DEFAULT_SYNC_HOST,
label = "host:port to synchronize routes to")
- private String syncHost = DEFAULT_SYNC_HOST;
+ private String syncHost = null;
@Property(name = "username", value = DEFAULT_USER,
label = "Username for REST password authentication")
@@ -228,11 +228,11 @@
priority = isNullOrEmpty(s) ? DEFAULT_PRIORITY : Integer.parseInt(s.trim());
s = get(properties, "syncHost");
- syncHost = isNullOrEmpty(s) ? DEFAULT_SYNC_HOST : s.trim();
+ syncHost = isNullOrEmpty(s) ? null : s.trim();
} catch (Exception e) {
user = DEFAULT_USER;
password = DEFAULT_PASSWORD;
- syncHost = DEFAULT_SYNC_HOST;
+ syncHost = null;
mcastVlan = DEFAULT_MCAST_VLAN;
vlanEnabled = false;
priority = DEFAULT_PRIORITY;