Class SouthboundMapper
- java.lang.Object
-
- org.opendaylight.ovsdb.southbound.SouthboundMapper
-
public final class SouthboundMapper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addControllerEntries(List<ControllerEntry> controllerEntries, Controller controller)
Add the OVSDBController
updates to the MDSALControllerEntry
list.static void
addManagerEntries(List<ManagerEntry> managerEntries, Manager manager)
Add the OVSDBManager
updates to the MDSALManagerEntry
list.static ConnectionInfo
createConnectionInfo(OvsdbClient client)
static List<ControllerEntry>
createControllerEntries(Bridge bridge, Map<UUID,Controller> updatedControllerRows)
static List<ControllerEntry>
createControllerEntries(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node bridgeNode, Map<UUID,Controller> updatedControllerRows)
static DatapathId
createDatapathId(String dpid)
static DatapathId
createDatapathId(Set<String> dpids)
static DatapathId
createDatapathId(Bridge bridge)
static Class<? extends DatapathTypeBase>
createDatapathType(String type)
static String
createDatapathType(OvsdbBridgeAugmentation mdsalbridge)
static InetAddress
createInetAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ip)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>
createInstanceIdentifier(InstanceIdentifierCodec instanceIdentifierCodec, OvsdbConnectionInstance client, Bridge bridge)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>
createInstanceIdentifier(InstanceIdentifierCodec instanceIdentifierCodec, OvsdbConnectionInstance client, Controller controller, String bridgeName)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>
createInstanceIdentifier(OvsdbConnectionInstance client, String bridgeName)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>
createInstanceIdentifier(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId nodeId)
static Class<? extends InterfaceTypeBase>
createInterfaceType(String type)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress
createIpAddress(Inet4Address address)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress
createIpAddress(Inet6Address address)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress
createIpAddress(InetAddress address)
static org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId
createManagedNodeId(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> iid)
static List<ManagerEntry>
createManagerEntries(OpenVSwitch ovsdbNode, Map<UUID,Manager> updatedManagerRows)
static List<ManagerEntry>
createManagerEntries(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node ovsdbNode, Map<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri,Manager> updatedManagerRows)
static List<ProtocolEntry>
createMdsalProtocols(Bridge bridge)
static Set<String>
createOvsdbBridgeProtocols(OvsdbBridgeAugmentation ovsdbBridgeNode)
static Map<UUID,Controller>
createOvsdbController(OvsdbBridgeAugmentation omn, DatabaseSchema dbSchema)
static String
createOvsdbInterfaceType(Class<? extends InterfaceTypeBase> mdsaltype)
static String
createQosType(Class<? extends QosTypeBase> qosTypeClass)
static Class<? extends QosTypeBase>
createQosType(String type)
Return the MD-SAL QoS type class corresponding to the QoS typeQos
.static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology>
createTopologyInstanceIdentifier()
static Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject>
extractTerminationPointConfigurationChanges(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node bridgeNode)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>
getInstanceIdentifier(InstanceIdentifierCodec instanceIdentifierCodec, OpenVSwitch ovs)
static String
getRandomUuid()
static ConnectionInfo
suppressLocalIpPort(ConnectionInfo connectionInfo)
-
-
-
Method Detail
-
createIpAddress
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress createIpAddress(InetAddress address)
-
createIpAddress
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress createIpAddress(Inet4Address address)
-
createIpAddress
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress createIpAddress(Inet6Address address)
-
createTopologyInstanceIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology> createTopologyInstanceIdentifier()
-
createInstanceIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> createInstanceIdentifier(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId nodeId)
-
createInstanceIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> createInstanceIdentifier(InstanceIdentifierCodec instanceIdentifierCodec, OvsdbConnectionInstance client, Bridge bridge)
-
createInstanceIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> createInstanceIdentifier(InstanceIdentifierCodec instanceIdentifierCodec, OvsdbConnectionInstance client, Controller controller, String bridgeName)
-
createInstanceIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> createInstanceIdentifier(OvsdbConnectionInstance client, String bridgeName)
-
createManagedNodeId
public static org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId createManagedNodeId(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> iid)
-
createInetAddress
public static InetAddress createInetAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ip) throws UnknownHostException
- Throws:
UnknownHostException
-
createDatapathId
public static DatapathId createDatapathId(Bridge bridge)
-
createDatapathId
public static DatapathId createDatapathId(Set<String> dpids)
-
createDatapathId
public static DatapathId createDatapathId(String dpid)
-
createDatapathType
public static String createDatapathType(OvsdbBridgeAugmentation mdsalbridge)
-
createDatapathType
public static Class<? extends DatapathTypeBase> createDatapathType(String type)
-
createOvsdbBridgeProtocols
public static Set<String> createOvsdbBridgeProtocols(OvsdbBridgeAugmentation ovsdbBridgeNode)
-
createInterfaceType
public static Class<? extends InterfaceTypeBase> createInterfaceType(String type)
-
createOvsdbInterfaceType
public static String createOvsdbInterfaceType(Class<? extends InterfaceTypeBase> mdsaltype)
-
createMdsalProtocols
public static List<ProtocolEntry> createMdsalProtocols(Bridge bridge)
-
createControllerEntries
public static List<ControllerEntry> createControllerEntries(Bridge bridge, Map<UUID,Controller> updatedControllerRows)
- Parameters:
bridge
- theBridge
to updateupdatedControllerRows
- the list ofController
controllers with updates- Returns:
- list of
ControllerEntry
entries
-
createControllerEntries
public static List<ControllerEntry> createControllerEntries(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node bridgeNode, Map<UUID,Controller> updatedControllerRows)
- Parameters:
bridgeNode
- theNode
to updateupdatedControllerRows
- the list ofController
controllers with updates- Returns:
- list of
ControllerEntry
entries
-
addControllerEntries
public static void addControllerEntries(List<ControllerEntry> controllerEntries, Controller controller)
Add the OVSDBController
updates to the MDSALControllerEntry
list.- Parameters:
controllerEntries
- the list ofControllerEntry
to updatecontroller
- the updated OVSDBController
-
createOvsdbController
public static Map<UUID,Controller> createOvsdbController(OvsdbBridgeAugmentation omn, DatabaseSchema dbSchema)
-
getRandomUuid
public static String getRandomUuid()
-
createConnectionInfo
public static ConnectionInfo createConnectionInfo(OvsdbClient client)
-
suppressLocalIpPort
public static ConnectionInfo suppressLocalIpPort(ConnectionInfo connectionInfo)
-
createManagerEntries
public static List<ManagerEntry> createManagerEntries(OpenVSwitch ovsdbNode, Map<UUID,Manager> updatedManagerRows)
- Parameters:
ovsdbNode
- theOpenVSwitch
to updateupdatedManagerRows
- the list ofManager
managers with updates- Returns:
- list of
ManagerEntry
entries
-
createManagerEntries
public static List<ManagerEntry> createManagerEntries(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node ovsdbNode, Map<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri,Manager> updatedManagerRows)
- Parameters:
ovsdbNode
- theNode
to updateupdatedManagerRows
- the list ofManager
managers with updates- Returns:
- list of
ManagerEntry
entries
-
addManagerEntries
public static void addManagerEntries(List<ManagerEntry> managerEntries, Manager manager)
Add the OVSDBManager
updates to the MDSALManagerEntry
list.- Parameters:
managerEntries
- the list ofManagerEntry
to updatemanager
- the updated OVSDBManager
-
createQosType
public static Class<? extends QosTypeBase> createQosType(String type)
Return the MD-SAL QoS type class corresponding to the QoS typeQos
.- Parameters:
type
- the QoS type to matchString
- Returns:
- class matching the input QoS type
QosTypeBase
-
createQosType
public static String createQosType(Class<? extends QosTypeBase> qosTypeClass)
-
getInstanceIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> getInstanceIdentifier(InstanceIdentifierCodec instanceIdentifierCodec, OpenVSwitch ovs)
-
extractTerminationPointConfigurationChanges
public static Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.yangtools.yang.binding.DataObject> extractTerminationPointConfigurationChanges(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node bridgeNode)
-
-