Interface VpnTarget
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<VpnTarget>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.ChildOf<VpnTargets>
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
,org.opendaylight.yangtools.yang.binding.Identifiable<VpnTargetKey>
@Generated("mdsal-binding-generator") public interface VpnTarget extends org.opendaylight.yangtools.yang.binding.ChildOf<VpnTargets>, org.opendaylight.yangtools.yang.binding.Augmentable<VpnTarget>, org.opendaylight.yangtools.yang.binding.Identifiable<VpnTargetKey>
L3vpn vpntarget configure classThis class represents the following YANG schema fragment defined in module l3vpn-instances-interfaces
list vpnTarget { key vrfRTValue; leaf vrfRTValue { type string { length 3..21; } } leaf vrfRTType { type enumeration { enum export_extcommunity { value 0; } enum import_extcommunity { value 1; } enum both { value 2; } } } }
The schema path to identify an instance is l3vpn-instances-interfaces/vpn-instances/vpn-instance/vpnTargets/vpnTargetTo create instances of this class use
VpnTargetBuilder
.- See Also:
VpnTargetBuilder
,VpnTargetKey
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
VpnTarget.VrfRTType
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static boolean
bindingEquals(@NonNull VpnTarget thisObj, java.lang.Object obj)
Default implementation ofObject.equals(Object)
contract for this interface.static int
bindingHashCode(@NonNull VpnTarget obj)
Default implementation ofObject.hashCode()
contract for this interface.static java.lang.String
bindingToString(@NonNull VpnTarget obj)
Default implementation ofObject.toString()
contract for this interface.VpnTarget.VrfRTType
getVrfRTType()
Return vrfRTType, ornull
if it is not present.java.lang.String
getVrfRTValue()
Return vrfRTValue, ornull
if it is not present.default java.lang.Class<VpnTarget>
implementedInterface()
VpnTargetKey
key()
-
-
-
Method Detail
-
implementedInterface
default java.lang.Class<VpnTarget> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
bindingHashCode
static int bindingHashCode(@NonNull VpnTarget obj)
Default implementation ofObject.hashCode()
contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.- Parameters:
obj
- Object for which to generate hashCode() result.- Returns:
- Hash code value of data modeled by this interface.
- Throws:
java.lang.NullPointerException
- ifobj
is null
-
bindingEquals
static boolean bindingEquals(@NonNull VpnTarget thisObj, java.lang.Object obj)
Default implementation ofObject.equals(Object)
contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.- Parameters:
thisObj
- Object acting as the receiver of equals invocationobj
- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
java.lang.NullPointerException
- ifthisObj
is null
-
bindingToString
static java.lang.String bindingToString(@NonNull VpnTarget obj)
Default implementation ofObject.toString()
contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.- Parameters:
obj
- Object for which to generate toString() result.- Returns:
String
value of data modeled by this interface.- Throws:
java.lang.NullPointerException
- ifobj
is null
-
getVrfRTValue
java.lang.String getVrfRTValue()
Return vrfRTValue, ornull
if it is not present.Vpn-target: adds VPN target extended community attribute to the export or import VPN target extended community list. The vpn-target can be expressed in either of the following formats: (1)16-bit AS number:32-bit user-defined number For example, 1:3. The AS number ranges from 0 to 65535. The user-defined number ranges from 0 to 4294967295. The AS number and the user-defined number cannot be 0s at the same time. That is, a VPN target cannot be 0:0. (2)32-bit IP address:16-bit user-defined number For example, 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255. The user-defined number ranges from 0 to 65535. (3)32-bit IP address:16-bit user-defined number For example, 192.168.122.15:1. An IP address ranges from 0.0.0.0 to 255.255.255.255. A user-defined number ranges from 0 to 65535.
- Returns:
java.lang.String
vrfRTValue, ornull
if it is not present.
-
getVrfRTType
VpnTarget.VrfRTType getVrfRTType()
Return vrfRTType, ornull
if it is not present.Specifies the vpn target type, export-extcommunity: specifies the extended community attributes carried in routing information to be sent. import-extcommunity: receives routing information carrying specified extended community attributes.
- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.neutronvpn.l3vpn.rev200204.vpn.instances.vpn.instance.vpntargets.VpnTarget.VrfRTType
vrfRTType, ornull
if it is not present.
-
key
VpnTargetKey key()
- Specified by:
key
in interfaceorg.opendaylight.yangtools.yang.binding.Identifiable<VpnTargetKey>
-
-