Class DeviceInitializationUtil


  • public final class DeviceInitializationUtil
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.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<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> instanceIdentifier)
      Retrieve port number from connection.
      static SwitchFeatures getSwitchFeatures​(ConnectionContext connectionContext)
      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.
    • Method Detail

      • 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<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.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<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.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