All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, LocalGenericSettings
All Known Subinterfaces:
Config, State

@Generated("mdsal-binding-generator") public interface LocalStaticConfig extends org.opendaylight.yangtools.yang.binding.DataObject, LocalGenericSettings
Configuration data for static routes.

This class represents the following YANG schema fragment defined in module openconfig-local-routing

 grouping local-static-config {
   leaf prefix {
     type inet:ip-prefix;
   }
   leaf-list next-hop {
     type union {
       type inet:ip-address;
       type local-defined-next-hop;
       type string;
     }
   }
   uses local-generic-settings;
 }
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    This class represents the following YANG schema fragment defined in module openconfig-local-routing
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final @NonNull org.opendaylight.yangtools.yang.common.QName
    YANG identifier of the statement represented by this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return nextHop, or null if it is not present.
    org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix
    Return prefix, or null if it is not present.
     
    default @NonNull Set<LocalStaticConfig.NextHop>
    Return nextHop, guaranteed to be non-null.
    default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix
    Return prefix, guaranteed to be non-null.

    Methods inherited from interface org.opendaylight.yang.gen.v1.http.openconfig.net.yang.local.routing.rev151009.LocalGenericSettings

    getSetTag, requireSetTag
  • Field Details

    • QNAME

      static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
      YANG identifier of the statement represented by this class.
  • Method Details

    • implementedInterface

      Class<? extends LocalStaticConfig> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      Specified by:
      implementedInterface in interface LocalGenericSettings
    • getPrefix

      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getPrefix()
      Return prefix, or null if it is not present.
           
               Destination prefix for the static route, either IPv4 or IPv6.
           
       
      Returns:
      IpPrefix prefix, or null if it is not present.
    • requirePrefix

      default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix requirePrefix()
      Return prefix, guaranteed to be non-null.
           
               Destination prefix for the static route, either IPv4 or IPv6.
           
       
      Returns:
      IpPrefix prefix, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if prefix is not present
    • getNextHop

      @Nullable Set<LocalStaticConfig.NextHop> getNextHop()
      Return nextHop, or null if it is not present.
           
               Specify a set of next hops. Each entry may be an IP address, interface, or a
               single pre-defined next-hop can be used, e.g., drop
           
       
      Returns:
      Set<NextHop> nextHop, or null if it is not present.
    • requireNextHop

      default @NonNull Set<LocalStaticConfig.NextHop> requireNextHop()
      Return nextHop, guaranteed to be non-null.
           
               Specify a set of next hops. Each entry may be an IP address, interface, or a
               single pre-defined next-hop can be used, e.g., drop
           
       
      Returns:
      Set<NextHop> nextHop, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if nextHop is not present