Interface OpenconfigLocalRoutingData
- All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>
,org.opendaylight.yangtools.binding.BindingObject
,org.opendaylight.yangtools.binding.DataContainer
,org.opendaylight.yangtools.binding.DataRoot<OpenconfigLocalRoutingData>
,org.opendaylight.yangtools.binding.Grouping
,LocalRoutesTop
@Generated("mdsal-binding-generator")
public interface OpenconfigLocalRoutingData
extends org.opendaylight.yangtools.binding.DataRoot<OpenconfigLocalRoutingData>, LocalRoutesTop
This module describes configuration and operational state data for routes that
are locally generated, i.e., not created by dynamic routing protocols. These
include static routes, locally created aggregate routes for reducing the number
of constituent routes that must be advertised, summary routes for IGPs, etc.
This model expresses locally generated routes as generically as possible,
avoiding configuration of protocol-specific attributes at the time of route
creation. This is primarily to avoid assumptions about how underlying router
implementations handle route attributes in various routing table data
they maintain. Hence, the definition of locally generated routes essentially
creates 'bare' routes that do not have any protocol- specific attributes. When
protocol-specific attributes must be attached to a route (e.g., communities on
locally defined route meant to be advertised via BGP), the attributes should be
attached via a protocol-specific policy after importing the route into the
protocol for distribution (again via routing policy).
This class represents the following YANG schema fragment defined in module openconfig-local-routing
module openconfig-local-routing { yang-version 1; namespace "http://openconfig.net/yang/local-routing"; prefix loc-rt; import ietf-inet-types { prefix inet; } import openconfig-policy-types { prefix pt; revision-date 2015-10-09; } import openconfig-extensions { prefix oc-ext; revision-date 2015-10-09; } oc-ext:openconfig-version 0.1.3; revision 2015-10-09 { } revision 2015-05-01 { } typedef local-defined-next-hop { type enumeration { enum DROP { } } } grouping local-generic-settings { leaf set-tag { type pt:tag-type; } } 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; } grouping local-static-state { } grouping local-static-top { container static-routes { list static { key prefix; leaf prefix { type leafref { path ../config/prefix; } } container config { uses local-static-config; } container state { config false; uses local-static-config; uses local-static-state; } } } } grouping local-aggregate-config { leaf prefix { type inet:ip-prefix; } leaf discard { type boolean; default false; } uses local-generic-settings; } grouping local-aggregate-state { } grouping local-aggregate-top { container local-aggregates { list aggregate { key prefix; leaf prefix { type leafref { path ../config/prefix; } } container config { uses local-aggregate-config; } container state { config false; uses local-aggregate-config; uses local-aggregate-state; } } } } grouping local-routes-config { } grouping local-routes-state { } grouping local-routes-top { container local-routes { container config { uses local-routes-config; } container state { config false; uses local-routes-config; uses local-routes-state; } uses local-static-top; uses local-aggregate-top; } } uses local-routes-top; }
-
Method Summary
Methods inherited from interface org.opendaylight.yang.gen.v1.http.openconfig.net.yang.local.routing.rev151009.LocalRoutesTop
getLocalRoutes, nonnullLocalRoutes
-
Method Details
-
implementedInterface
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.binding.DataRoot<OpenconfigLocalRoutingData>
-