Interface ExtraRoutes

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<ExtraRoutes>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<Vpn>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, org.opendaylight.yangtools.yang.binding.Identifiable<ExtraRoutesKey>

    public interface ExtraRoutes
    extends org.opendaylight.yangtools.yang.binding.ChildOf<Vpn>, org.opendaylight.yangtools.yang.binding.Augmentable<ExtraRoutes>, org.opendaylight.yangtools.yang.binding.Identifiable<ExtraRoutesKey>

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

     list extra-routes {
       key vrf-id;
       leaf vrf-id {
         type string;
       }
       list routes {
         key prefix;
         leaf prefix {
           type string;
         }
         leaf-list nexthop-ip-list {
           type string;
         }
       }
     }
     
    The schema path to identify an instance is odl-l3vpn/vpn-to-extraroutes/vpn/extra-routes

    To create instances of this class use ExtraRoutesBuilder.

    See Also:
    ExtraRoutesBuilder, ExtraRoutesKey
    • Field Detail

      • QNAME

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

      • implementedInterface

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

        @Nullable java.lang.String getVrfId()
        The vrf-id configures unique route distinguisher (RD) for each ipv4 or ipv6 prefix when its nexthop-ip-list connected to same compute node
        Returns:
        java.lang.String vrfId, or null if not present
      • getRoutes

        @Nullable java.util.List<Routes> getRoutes()
        Returns:
        java.util.List routes, or null if not present
      • nonnullRoutes

        default @NonNull java.util.List<Routes> nonnullRoutes()
        Returns:
        java.util.List routes, or an empty list if it is not present