commit | 174e98013ca109d5931f5f7cfd92f2f22abc40bd | [log] [tgz] |
---|---|---|
author | Hyunsun Moon <hyunsun.moon@gmail.com> | Wed May 04 16:51:34 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu May 05 16:24:32 2016 +0000 |
tree | bbcf8f67cb694f7e4d9a2b67c2f2f304dc19af2b | |
parent | b43748aedaebca234ba8251a976e056411bb46f9 [diff] |
Allow cordvtn to work without XOS for now Change-Id: I6c9bb199879ecdb0b68538475135cac424136ab3
diff --git a/src/main/java/org/onosproject/cordvtn/api/CordVtnConfig.java b/src/main/java/org/onosproject/cordvtn/api/CordVtnConfig.java index 9f3a279..2055e34 100644 --- a/src/main/java/org/onosproject/cordvtn/api/CordVtnConfig.java +++ b/src/main/java/org/onosproject/cordvtn/api/CordVtnConfig.java
@@ -193,7 +193,6 @@ public XosAccess xosAccess() { JsonNode jsonNode = object.get(XOS); if (jsonNode == null) { - log.error("Failed to get XOS configurations"); return null; }
diff --git a/src/main/java/org/onosproject/cordvtn/impl/CordVtn.java b/src/main/java/org/onosproject/cordvtn/impl/CordVtn.java index 0a7b77d..f816cf9 100644 --- a/src/main/java/org/onosproject/cordvtn/impl/CordVtn.java +++ b/src/main/java/org/onosproject/cordvtn/impl/CordVtn.java
@@ -779,7 +779,10 @@ * @param xosAccess xos access */ private void setXosAccess(XosAccess xosAccess) { - checkNotNull(xosAccess, "XOS access is not configured"); + if (xosAccess == null) { + log.warn("XOS access is not configured"); + return; + } log.debug("Set XOS access with Endpoint: {} User: {} Passwd: {}", xosAccess.endpoint(),