configurable xranc bind address and cleanup functions
diff --git a/src/main/java/org.onosproject.xran/impl/XranConfig.java b/src/main/java/org.onosproject.xran/impl/XranConfig.java
index e334892..ef83194 100644
--- a/src/main/java/org.onosproject.xran/impl/XranConfig.java
+++ b/src/main/java/org.onosproject.xran/impl/XranConfig.java
@@ -47,6 +47,8 @@
private static final String IP_ADDR = "ip_addr";
+ private static final String XRANC_IP = "xranc_bind_ip";
+
private static final String XRANC_PORT = "xranc_port";
private static final String XRANC_CELLCONFIG_INTERVAL = "xranc_cellconfigrequest_interval_seconds";
@@ -115,6 +117,13 @@
}
/**
+ * Get IP where the Controller binds to.
+ *
+ * @return IP address in configuration
+ */
+ public IpAddress getXrancIp() { return IpAddress.valueOf(object.get(XRANC_IP).asText()); }
+
+ /**
* Get port for xRAN controller server to bind to from configuration.
*
* @return port number