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 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 server
      waitList - 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