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 class

    This 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/vpnTarget

    To create instances of this class use VpnTargetBuilder.

    See Also:
    VpnTargetBuilder, VpnTargetKey
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        default java.lang.Class<VpnTarget> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • bindingHashCode

        static int bindingHashCode​(@NonNull VpnTarget obj)
        Default implementation of Object.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 - if obj is null
      • bindingEquals

        static boolean bindingEquals​(@NonNull VpnTarget thisObj,
                                     java.lang.Object obj)
        Default implementation of Object.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 invocation
        obj - Object acting as argument to equals invocation
        Returns:
        True if thisObj and obj are considered equal
        Throws:
        java.lang.NullPointerException - if thisObj is null
      • bindingToString

        static java.lang.String bindingToString​(@NonNull VpnTarget obj)
        Default implementation of Object.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 - if obj is null
      • getVrfRTValue

        java.lang.String getVrfRTValue()
        Return vrfRTValue, or null 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, or null if it is not present.
      • getVrfRTType

        VpnTarget.VrfRTType getVrfRTType()
        Return vrfRTType, or null 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, or null if it is not present.
      • key

        VpnTargetKey key()
        Specified by:
        key in interface org.opendaylight.yangtools.yang.binding.Identifiable<VpnTargetKey>