Interface LocalStaticConfig

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

    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;
     }
     
    The schema path to identify an instance is openconfig-local-routing/local-static-config
    • Field Detail

      • QNAME

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

      • implementedInterface

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

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

        @Nullable List<LocalStaticConfig.NextHop> getNextHop()
        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:
        java.util.List nextHop, or null if not present