Class DeviceInitializationUtil
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.util.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 facadedeviceInfo
- device infonrOfTables
- 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 contextinstanceIdentifier
- 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 contextinstanceIdentifier
- instance identifier- Returns:
- port number
-
getSwitchFeatures
public static SwitchFeatures getSwitchFeatures(ConnectionContext connectionContext)
Retrieve switch features from connection.- Parameters:
connectionContext
- connection context- Returns:
- switch features
-
-