Class OvsdbItUtils
java.lang.Object
org.opendaylight.ovsdb.utils.ovsdb.it.utils.OvsdbItUtils
This class contains various utility methods used in OVSDB integration tests (IT).
-
Constructor Summary
ConstructorDescriptionOvsdbItUtils
(org.opendaylight.mdsal.binding.api.DataBroker dataBroker) Create a new OvsdbItUtils instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateNodeInfo
(ConnectionInfo connectionInfo, List<NotifyingDataChangeListener> waitList) Get a NodeInfo instance initialized with this ItUtil's DataBroker.boolean
isControllerConnected
(ConnectionInfo connectionInfo) Checks whether the OVSDB controller is connected.
-
Constructor Details
-
OvsdbItUtils
public OvsdbItUtils(org.opendaylight.mdsal.binding.api.DataBroker dataBroker) Create a new OvsdbItUtils instance.- Parameters:
dataBroker
- md-sal data broker
-
-
Method Details
-
createNodeInfo
public NodeInfo createNodeInfo(ConnectionInfo connectionInfo, List<NotifyingDataChangeListener> waitList) Get a NodeInfo instance initialized with this ItUtil's DataBroker.- Parameters:
connectionInfo
- ConnectionInfo for the OVSDB serverwaitList
- For tracking outstanding md-sal events notifications- Returns:
- a new NodeInfo object
-
isControllerConnected
Checks whether the OVSDB controller is connected. This method will retry 10 times and will through an AssertionError for any number of unexpected states.- Parameters:
connectionInfo
- where to connect to- Returns:
- true if connected
- Throws:
InterruptedException
- if interrupted while waiting for connection to appear
-