Interface VpnInstance

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<VpnInstance>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<VpnInstances>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, org.opendaylight.yangtools.yang.binding.Identifiable<VpnInstanceKey>

    public interface VpnInstance
    extends org.opendaylight.yangtools.yang.binding.ChildOf<VpnInstances>, org.opendaylight.yangtools.yang.binding.Augmentable<VpnInstance>, org.opendaylight.yangtools.yang.binding.Identifiable<VpnInstanceKey>

    This class represents the following YANG schema fragment defined in module l3vpn-instances-interfaces

     list vpn-instance {
       key vpn-instance-name;
       leaf vpn-instance-name {
         type string;
       }
       leaf-list route-distinguisher {
         type string {
           length 3..21;
         }
       }
       container vpnTargets {
         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;
               }
             }
           }
         }
       }
       leaf l2vpn {
         type boolean;
         default false;
       }
       leaf bgpvpn-type {
         type enumeration {
           enum InternetBGPVPN {
             value 0;
           }
           enum BGPVPN {
             value 1;
           }
           enum InternalVPN {
             value 2;
           }
         }
         default BGPVPN;
       }
       leaf ip-address-family-configured {
         type enumeration {
           enum undefined {
             value 0;
           }
           enum ipv4 {
             value 4;
           }
           enum ipv6 {
             value 6;
           }
           enum ipv4-and-ipv6 {
             value 10;
           }
         }
         default undefined;
       }
       leaf l3vni {
         type uint32;
       }
     }
     
    The schema path to identify an instance is l3vpn-instances-interfaces/vpn-instances/vpn-instance

    To create instances of this class use VpnInstanceBuilder.

    See Also:
    VpnInstanceBuilder, VpnInstanceKey
    • Field Detail

      • QNAME

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

      • implementedInterface

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

        java.lang.String getVpnInstanceName()
        The name of the vpn-instance.
        Returns:
        java.lang.String vpnInstanceName, or null if not present
      • getRouteDistinguisher

        @Nullable java.util.List<java.lang.String> getRouteDistinguisher()
        A set of configuration parameters that is applicable to both IPv4 and IPv6 address family for a VPN instance. Format is ASN:nn or IP-address:nn.
        Returns:
        java.util.List routeDistinguisher, or null if not present
      • getVpnTargets

        VpnTargets getVpnTargets()
        The vpn-target command configures the export or import VPN target extended community attribute for the VPN instance IPv4/IPv6 address family. Format is ASN:nn or IP-address:nn.
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.neutronvpn.l3vpn.rev200204.vpn.instances.vpn.instance.VpnTargets vpnTargets, or null if not present
      • isL2vpn

        java.lang.Boolean isL2vpn()
        The type of the VPN Instance. false indicates it is an L3VPN. true indicates it is an EVPN
        Returns:
        java.lang.Boolean l2vpn, or null if not present
      • getBgpvpnType

        VpnInstance.BgpvpnType getBgpvpnType()
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.neutronvpn.l3vpn.rev200204.vpn.instances.VpnInstance.BgpvpnType bgpvpnType, or null if not present
      • getIpAddressFamilyConfigured

        VpnInstance.IpAddressFamilyConfigured getIpAddressFamilyConfigured()
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.neutronvpn.l3vpn.rev200204.vpn.instances.VpnInstance.IpAddressFamilyConfigured ipAddressFamilyConfigured, or null if not present
      • getL3vni

        org.opendaylight.yangtools.yang.common.Uint32 getL3vni()
        Returns:
        org.opendaylight.yangtools.yang.common.Uint32 l3vni, or null if not present