Class OvsdbItUtils
- java.lang.Object
-
- org.opendaylight.ovsdb.utils.ovsdb.it.utils.OvsdbItUtils
-
public class OvsdbItUtils extends Object
This class contains various utility methods used in OVSDB integration tests (IT).
-
-
Constructor Summary
Constructors Constructor Description OvsdbItUtils(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
Create a new OvsdbItUtils instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeInfo
createNodeInfo(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.
-
-
-
Method Detail
-
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
public boolean isControllerConnected(ConnectionInfo connectionInfo) throws InterruptedException
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
-
-