Class DeviceInitializationUtil

java.lang.Object
org.opendaylight.openflowplugin.impl.util.DeviceInitializationUtil

public final class DeviceInitializationUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress
    getIpAddress(ConnectionContext connectionContext, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> instanceIdentifier)
    Retrieve ip address from connection.
    static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber
    getPortNumber(ConnectionContext connectionContext, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> instanceIdentifier)
    Retrieve port number from connection.
    Retrieve switch features from connection.
    static void
    makeEmptyNodes(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
    Merge empty nodes to operational DS to predict any problems with missing parent for node.
    static void
    makeEmptyTables(TxFacade txFacade, DeviceInfo deviceInfo, short nrOfTables)
    Create specified number of empty tables on device.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • makeEmptyNodes

      public static void makeEmptyNodes(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
      Merge empty nodes to operational DS to predict any problems with missing parent for node.
      Parameters:
      dataBroker - the data broker
    • makeEmptyTables

      public static void makeEmptyTables(TxFacade txFacade, DeviceInfo deviceInfo, short nrOfTables)
      Create specified number of empty tables on device. FIXME: remove after ovs table features fix
      Parameters:
      txFacade - transaction facade
      deviceInfo - device info
      nrOfTables - number of tables
    • getIpAddress

      public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAddress(ConnectionContext connectionContext, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> instanceIdentifier)
      Retrieve ip address from connection.
      Parameters:
      connectionContext - connection context
      instanceIdentifier - instance identifier
      Returns:
      ip address
    • getPortNumber

      public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getPortNumber(ConnectionContext connectionContext, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> instanceIdentifier)
      Retrieve port number from connection.
      Parameters:
      connectionContext - connection context
      instanceIdentifier - instance identifier
      Returns:
      port number
    • getSwitchFeatures

      public static SwitchFeatures getSwitchFeatures(ConnectionContext connectionContext)
      Retrieve switch features from connection.
      Parameters:
      connectionContext - connection context
      Returns:
      switch features