Class DeviceInitializationUtil
java.lang.Object
org.opendaylight.openflowplugin.impl.util.DeviceInitializationUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.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 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
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<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<Node> instanceIdentifier) Retrieve port number from connection.- Parameters:
connectionContext
- connection contextinstanceIdentifier
- instance identifier- Returns:
- port number
-
getSwitchFeatures
Retrieve switch features from connection.- Parameters:
connectionContext
- connection context- Returns:
- switch features
-