Interface L3vpnInstancesInterfacesData

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.DataRoot

    @Generated("mdsal-binding-generator")
    public interface L3vpnInstancesInterfacesData
    extends org.opendaylight.yangtools.yang.binding.DataRoot

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

     module l3vpn-instances-interfaces {
       namespace urn:opendaylight:netvirt:neutronvpn:l3vpn;
       prefix l3vpn-instances-interfaces;
       import ietf-yang-types {
         prefix yang;
         revision-date 2013-07-15;
       }
       import ietf-interfaces {
         prefix if;
       }
       import yang-ext {
         prefix ext;
         revision-date 2013-07-09;
       }
       import neutronvpn {
         prefix nvpn;
         revision-date 2015-06-02;
       }
       revision 2020-02-04 {
       }
       container vpn-instances {
         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;
           }
         }
       }
       augment /vpn-interfaces/vpn-interface {
         ext:augment-identifier adjacencies;
         uses adjacency-list;
       }
       grouping adjacency-list {
         list adjacency {
           key ip_address;
           leaf-list next-hop-ip-list {
             type string;
           }
           leaf ip_address {
             type string;
           }
           leaf adjacency_type {
             type enumeration {
               enum primary-adjacency {
                 value 1;
               }
               enum learnt-ip {
                 value 2;
               }
               enum extra-route {
                 value 3;
               }
             }
             default extra-route;
           }
           leaf mac_address {
             type string;
           }
           leaf subnet_id {
             type yang:uuid;
           }
           leaf subnet_gateway_ip {
             type string;
           }
           leaf phys-network-func {
             type boolean;
             default false;
           }
           uses adjacency-op-data;
         }
       }
       grouping adjacency-op-data {
         leaf label {
           type uint32;
           config false;
         }
         leaf subnet_gateway_mac_address {
           type string;
           config false;
         }
         leaf vrf-id {
           type string;
           config false;
         }
         leaf marked_for_deletion {
           config false;
           type boolean;
         }
       }
       container vpn-interfaces {
         list vpn-interface {
           key name;
           leaf name {
             type leafref {
               path /if:interfaces/if:interface/if:name;
             }
           }
           list vpn-instance-names {
             key vpn-name;
             leaf vpn-name {
               type string {
                 length 1..40;
               }
             }
             leaf associated-subnet-type {
               type enumeration {
                 enum V4Subnet {
                   value 0;
                 }
                 enum V6Subnet {
                   value 1;
                 }
                 enum V6InternetVPN {
                   value 2;
                 }
                 enum V4AndV6Subnets {
                   value 3;
                 }
               }
             }
           }
           leaf dpn-id {
             type uint64;
           }
           leaf router-interface {
             type boolean;
           }
           uses nvpn:network-attributes;
         }
       }
     }
     
    • Method Detail

      • getVpnInstances

        VpnInstances getVpnInstances()
        Return vpnInstances, or null if it is not present.
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.neutronvpn.l3vpn.rev200204.VpnInstances vpnInstances, or null if it is not present.
      • getVpnInterfaces

        VpnInterfaces getVpnInterfaces()
        Return vpnInterfaces, or null if it is not present.
             
                 VPN is enabled on interfaces.
             
         
        Returns:
        org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.neutronvpn.l3vpn.rev200204.VpnInterfaces vpnInterfaces, or null if it is not present.