CORD-151 add initial skeleton for cord-vtn application
Change-Id: I57bf17445f1e571b51bca2fe7c2631e65cd43145
diff --git a/src/main/java/org/onosproject/cordvtn/OvsdbNode.java b/src/main/java/org/onosproject/cordvtn/OvsdbNode.java
index 75e61d7..bb2a0b7 100644
--- a/src/main/java/org/onosproject/cordvtn/OvsdbNode.java
+++ b/src/main/java/org/onosproject/cordvtn/OvsdbNode.java
@@ -18,8 +18,6 @@
import org.onlab.packet.IpAddress;
import org.onlab.packet.TpPort;
import org.onosproject.net.DeviceId;
-import org.onosproject.net.behaviour.BridgeConfig;
-import org.onosproject.net.behaviour.TunnelConfig;
/**
* Representation of a node with ovsdb server.
@@ -29,7 +27,7 @@
* State of the ovsdb node.
*/
enum State {
- READY, CONNECTED, DISCONNECTED
+ INIT, READY, CONNECTED, DISCONNECTED
}
/**
@@ -47,44 +45,30 @@
TpPort port();
/**
+ * Returns the hostname of the node.
+ *
+ * @return hostname
+ */
+ String hostname();
+
+ /**
* Returns the state of the node.
*
* @return state of the node
*/
- State getState();
-
- /**
- * Sets the state of the node.
- *
- * @param state state of the node
- */
- void setState(State state);
+ State state();
/**
* Returns the device ID of the node.
*
* @return device id
*/
- DeviceId getDeviceId();
+ DeviceId deviceId();
/**
- * Sets the device id of the node.
+ * Returns the device ID of the bridge associated with this node.
*
- * @param deviceId device identifier
+ * @return device id
*/
- void setDeviceId(DeviceId deviceId);
-
- /**
- * Returns the bridge configuration handler of the node.
- *
- * @return bridge config behavior instance
- */
- BridgeConfig getBridgeConfig();
-
- /**
- * Returns the tunnel configuration handler of the node.
- *
- * @return tunnel config behavior instance
- */
- TunnelConfig getTunnelConfig();
+ DeviceId bridgeId();
}