T - The type of the target data model.public abstract class VNodeIdentifier<T extends org.opendaylight.yangtools.yang.binding.DataObject> extends Object
VNodeIdentifier describes an identifier for the virtual node.| Modifier and Type | Field and Description |
|---|---|
static int |
TYPEBIT_MACMAP
A bit which indicates a MAC mapping configured in a vBridge.
|
static int |
TYPEBIT_MACMAP_HOST
A bit which indicates a host mapped by a MAC mapping configured in
a vBridge.
|
static int |
TYPEBIT_VBRIDGE
A bit which indicates a vBridge or a virtual node inside vBridge.
|
static int |
TYPEBIT_VINTERFACE
A bit which indicates a virtual interface.
|
static int |
TYPEBIT_VLANMAP
A bit which indicates a VLAN mapping configured in a vBridge.
|
static int |
TYPEBIT_VTERMINAL
A bit which indicates a vTerminal or a virtual node inside
vTerminal.
|
static int |
TYPEBIT_VTN
A bit which indicates a VTN or a virtual node inside VTN.
|
| Modifier and Type | Method and Description |
|---|---|
List<FlowFilterResult> |
clearFlowFilter(org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction tx,
boolean output)
Delete all the flow filters in the specified flow filter list.
|
boolean |
contains(VirtualNodePath vpath)
Determine whether the virtua node specified by this instance contains
the virtual node specified by
VirtualNodePath instance. |
boolean |
contains(VNodeIdentifier<?> ident)
Determine whether the data model associated with this instance contains
the data model specified by the given instance.
|
static VNodeIdentifier<?> |
create(String str)
Construct a new instance from a string representation of
VNodeIdentifier instance. |
static <T extends VNodeIdentifier<?>> |
create(String str,
Class<T> type)
Construct a new instance from a string representation of
VNodeIdentifier instance with type checking. |
static VNodeIdentifier<?> |
create(VnodePathFields vpath,
boolean find)
Construct a new instance from the given
VnodePathFields
instance. |
boolean |
equals(Object o)
Determine whether the given object is identical to this object.
|
T |
fetch(org.opendaylight.controller.md.sal.binding.api.ReadTransaction rtx)
Read the data object specified by this instance.
|
static RpcException |
getBadPathException(Object o)
Return an exception that notifies an invalid virtual node path.
|
VnodeName |
getBridgeName()
Return the name of the virtual bridge configured in this instance.
|
String |
getBridgeNameString()
Return the name of the virtual bridge configured in this instance.
|
List<String> |
getComponents()
Return a list which contains all path components configured in this
instance.
|
RpcException |
getDataExistsException()
Return an exception that indicates the virtual node specified by this
instance is already present.
|
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VtnFlowFilter> |
getFlowFilterIdentifier(boolean output,
Integer index)
Return an instance identifier that specifies a flow filter.
|
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdentifierBuilder<? extends VtnFlowFilterList> |
getFlowFilterListIdentifierBuilder(boolean output)
Return an instance identifier builder rooted at the specified container
for the flow filter list.
|
static RpcException |
getFlowFilterUnsupportedException(VNodeIdentifier<?> ident)
Return an exception that indicates the virtual node does not support
flow filter.
|
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> |
getIdentifier()
Return an indentifier for the MD-SAL data model associated with this
instance.
|
abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdentifierBuilder<T> |
getIdentifierBuilder()
Return an instance identifier builder rooted at the virtual node
specified by this instance.
|
VnodeName |
getInterfaceName()
Return the name of the virtual interface configured in this instance.
|
String |
getInterfaceNameString()
Return the name of the virtual interface configured in this instance.
|
RpcException |
getNotFoundException()
Return an exception that indicates the virtual node specified by this
instance is not present.
|
VnodeName |
getTenantName()
Return the name of the VTN configured in this instance.
|
String |
getTenantNameString()
Return the name of the VTN configured in this instance.
|
abstract VNodeType |
getType()
Return a
VNodeType instance which indicates the type of the
virtual node. |
VirtualNodePath |
getVirtualNodePath()
Return a
VirtualNodePath instance that specifies the same
virtual node as this instance. |
protected VirtualNodePathBuilder |
getVirtualNodePathBuilder()
Create a new
VirtualNodePathBuilder instance that contains the
path components configured in this instance. |
abstract VNodeIdentifier<?> |
getVNodeIdentifier()
Return a
VNodeIdentifier that specifies a virtual network
element. |
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdentifierBuilder<Vtn> |
getVtnIdentifierBuilder()
Return an instance identifier builder which contains the VTN key.
|
int |
hashCode()
Return the hash code of this object.
|
protected abstract List<String> |
newComponents()
Create a new list which contains all path components configured in this
instance.
|
com.google.common.base.Optional<T> |
read(org.opendaylight.controller.md.sal.binding.api.ReadTransaction rtx)
Read the data object specified by this instance.
|
com.google.common.base.Optional<VtenantConfig> |
readVtenantConfig(org.opendaylight.controller.md.sal.binding.api.ReadTransaction rtx)
Read the configuration for the VTN specified by this instance.
|
String |
toString()
Return a string representation of this instance.
|
public static final int TYPEBIT_VTN
public static final int TYPEBIT_VBRIDGE
public static final int TYPEBIT_VTERMINAL
public static final int TYPEBIT_VINTERFACE
public static final int TYPEBIT_VLANMAP
public static final int TYPEBIT_MACMAP
public static final int TYPEBIT_MACMAP_HOST
public static final VNodeIdentifier<?> create(String str)
VNodeIdentifier instance.str - A string representation of VNodeIdentifier instance
returned by the call of toString().VNodeIdentifier instance.
Note that null is returned if str is
null.IllegalArgumentException - An invalid string is passed to str.public static final <T extends VNodeIdentifier<?>> T create(String str, Class<T> type)
VNodeIdentifier instance with type checking.T - The type of VNodeIdentifier.str - A string representation of VNodeIdentifier instance
returned by the call of toString().
Unlike create(String), null cannot be
passed.type - A class which specifies the expected type of
VNodeIdentifier.VNodeIdentifier instance.IllegalArgumentException - An invalid string is passed to str.IllegalStateException - The type of the VNode identifier constructed from str does
not match the specified type.public static VNodeIdentifier<?> create(VnodePathFields vpath, boolean find) throws RpcException
VnodePathFields
instance.vpath - A VnodePathFields instance.find - true indicates the given name is used for
finding existing virtual node.VNodeIdentifier instance if vpath is not
null. null if vpath is null.RpcException - vpath contains invalid value.public static final RpcException getBadPathException(Object o)
o - An object which indicates the cause of error.RpcException instance.public static final RpcException getFlowFilterUnsupportedException(VNodeIdentifier<?> ident)
ident - A VNodeIdentifier instance.RpcException instance.public final VnodeName getTenantName()
VnodeName instance which contains the VTN name.
null if not configured.public final String getTenantNameString()
null if not configured.public final VnodeName getBridgeName()
VnodeName instance which contains the virtual bridge
name. null if not configured.public final String getBridgeNameString()
null if not configured.public final VnodeName getInterfaceName()
VnodeName instance which contains the virtual
interface name. null if not configured.public final String getInterfaceNameString()
null if not configured.public final org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> getIdentifier()
InstanceIdentifier instance.public final List<String> getComponents()
public final boolean contains(VNodeIdentifier<?> ident)
ident - A VNodeIdentifier instance.true only if the data model associated with this
instance contains the data model specified by ident.public boolean contains(VirtualNodePath vpath)
VirtualNodePath instance.
Note that this method returns true if the given
VirtualNodePath specifies the same virtual node as specified
by this instance.
This method in this class checks only the VTN name. Subclass may override this method.
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.public final VirtualNodePath getVirtualNodePath()
VirtualNodePath instance that specifies the same
virtual node as this instance.VirtualNodePath instance.public final com.google.common.base.Optional<VtenantConfig> readVtenantConfig(org.opendaylight.controller.md.sal.binding.api.ReadTransaction rtx) throws VTNException
rtx - A read transaction.Optional instance that contains the result.VTNException - An error occurred.public final com.google.common.base.Optional<T> read(org.opendaylight.controller.md.sal.binding.api.ReadTransaction rtx) throws VTNException
rtx - A read transaction.Optional instance that contains the result.VTNException - An error occurred.public final T fetch(org.opendaylight.controller.md.sal.binding.api.ReadTransaction rtx) throws VTNException
This method throws an RpcException if the data object is
not present.
rtx - A read transaction.VTNException - An error occurred.public final org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VtnFlowFilter> getFlowFilterIdentifier(boolean output, Integer index) throws RpcException
output - true indicates the output filter.
false indicates the input filter.index - A flow filter index.RpcException - The virtual node specified by this instance does not support
flow filter.public final List<FlowFilterResult> clearFlowFilter(org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction tx, boolean output) throws VTNException
tx - A MD-SAL datastore transaction.output - true indicates the output filter list.
false indicates the input filter list.FlowFilterResult instances that contains
all the removed flow filter indices.
null if the specified flow filter list is empty.VTNException - An error occurred.public final RpcException getNotFoundException()
RpcException instance.public final RpcException getDataExistsException()
RpcException instance.protected final org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdentifierBuilder<Vtn> getVtnIdentifierBuilder()
protected VirtualNodePathBuilder getVirtualNodePathBuilder()
VirtualNodePathBuilder instance that contains the
path components configured in this instance.
This method in this class sets only the VTN name. Subclass may override this method.
VirtualNodePathBuilder instance.protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdentifierBuilder<? extends VtnFlowFilterList> getFlowFilterListIdentifierBuilder(boolean output) throws RpcException
output - true indicates the output filter list.
false indicates the input filter list.RpcException - The virtual node specified by this instance does not support
flow filter.public abstract VNodeType getType()
VNodeType instance which indicates the type of the
virtual node.VNodeType instance.public abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier.InstanceIdentifierBuilder<T> getIdentifierBuilder()
InstanceIdentifier.InstanceIdentifierBuilder instance.public abstract VNodeIdentifier<?> getVNodeIdentifier()
VNodeIdentifier that specifies a virtual network
element.
If this instance specifies a virtual network element, such as VTN and
vBridge, this method returns this instance.
If this instance specifies a virtual network mapping, such as VLAN
mapping, this method returns a VNodeIdentifier instance
that specfies a virtual network element in which contains that
mapping.
VNodeIdentifier instance that specifies a virtual
network element.protected abstract List<String> newComponents()
public final boolean equals(Object o)
public final int hashCode()
Copyright © 2018 OpenDaylight. All rights reserved.