T - The type of the target data model.B - The type of the virtual bridge.public abstract class TenantNodeIdentifier<T extends org.opendaylight.yangtools.yang.binding.DataObject,B extends VtnPortMappableBridge> extends VNodeIdentifier<T>
TenantNodeIdentifier describes an identifier for a virtual node
inside VTN, such as vBridge and virtual interface.TYPEBIT_MACMAP, TYPEBIT_MACMAP_HOST, TYPEBIT_VBRIDGE, TYPEBIT_VINTERFACE, TYPEBIT_VLANMAP, TYPEBIT_VTERMINAL, TYPEBIT_VTN| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(VirtualNodePath vpath)
Determine whether the virtua node specified by this instance contains
the virtual node specified by
VirtualNodePath instance. |
abstract BridgeIdentifier<B> |
getBridgeIdentifier()
Return an identifier for the virtual bridge that contains the data
object specified by this instance.
|
protected abstract String |
getBridgeName(VnodePathFields vpath)
Return the virtual bridge name configured in the given
VnodePathFields instance. |
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdentifierBuilder<Vbridge> |
getVBridgeIdentifierBuilder()
Return an instance identifier builder which contains the key of the
vBridge.
|
protected VirtualNodePathBuilder |
getVirtualNodePathBuilder()
Create a new
VirtualNodePathBuilder instance that contains the
path components configured in this instance. |
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdentifierBuilder<Vterminal> |
getVTerminalIdentifierBuilder()
Return an instance identifier builder which contains the key of the
vTerminal.
|
protected abstract VirtualNodePathBuilder |
setBridgeName(VirtualNodePathBuilder builder)
Set the virtual bridge name into the specified
VirtualNodePathBuilder instance. |
clearFlowFilter, contains, create, create, create, equals, fetch, getBadPathException, getBridgeName, getBridgeNameString, getComponents, getDataExistsException, getFlowFilterIdentifier, getFlowFilterListIdentifierBuilder, getFlowFilterUnsupportedException, getIdentifier, getIdentifierBuilder, getInterfaceName, getInterfaceNameString, getNotFoundException, getTenantName, getTenantNameString, getType, getVirtualNodePath, getVNodeIdentifier, getVtnIdentifierBuilder, hashCode, newComponents, read, readVtenantConfig, toStringpublic abstract BridgeIdentifier<B> getBridgeIdentifier()
protected abstract String getBridgeName(VnodePathFields vpath)
VnodePathFields instance.vpath - A VnodePathFields instance.
null cannot be specified.vpath.
null if the virtual bridge name is not configured
in vpath.protected abstract VirtualNodePathBuilder setBridgeName(VirtualNodePathBuilder builder)
VirtualNodePathBuilder instance.builder - A VirtualNodePathBuilder instance.builder.protected final org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdentifierBuilder<Vbridge> getVBridgeIdentifierBuilder()
protected final org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdentifierBuilder<Vterminal> getVTerminalIdentifierBuilder()
public boolean contains(VirtualNodePath vpath)
VirtualNodePath instance.
This method in this class checks only the VTN and virtual bridge name. Subclass may override this method.
contains in class VNodeIdentifier<T extends org.opendaylight.yangtools.yang.binding.DataObject>vpath - A VirtualNodePath instance that specifies the
virtual node. null cannot be specified.true if the virtual node specified by this instance
contains the virtual node specified by vpath.
false otherwise.protected VirtualNodePathBuilder getVirtualNodePathBuilder()
VirtualNodePathBuilder instance that contains the
path components configured in this instance.
This method in this class sets only the VTN and virtual bridge name. Subclass may override this method.
getVirtualNodePathBuilder in class VNodeIdentifier<T extends org.opendaylight.yangtools.yang.binding.DataObject>VirtualNodePathBuilder instance.Copyright © 2018 OpenDaylight. All rights reserved.