Documentation
¶
Overview ¶
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 structures 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 a 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).
Index ¶
- type DROP
- type LOCALDEFINEDNEXTHOP
- type LOCALLINK
- type LocalRoutes
- type LocalRoutes_Config
- type LocalRoutes_LocalAggregates
- type LocalRoutes_LocalAggregates_Aggregate
- type LocalRoutes_LocalAggregates_Aggregate_Config
- type LocalRoutes_LocalAggregates_Aggregate_State
- type LocalRoutes_State
- type LocalRoutes_StaticRoutes
- type LocalRoutes_StaticRoutes_Static
- type LocalRoutes_StaticRoutes_Static_Config
- type LocalRoutes_StaticRoutes_Static_NextHops
- type LocalRoutes_StaticRoutes_Static_NextHops_NextHop
- type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_Config
- type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef
- type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_Config
- type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_State
- type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_State
- type LocalRoutes_StaticRoutes_Static_State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LOCALDEFINEDNEXTHOP ¶
type LOCALDEFINEDNEXTHOP struct { }
func (LOCALDEFINEDNEXTHOP) String ¶
func (id LOCALDEFINEDNEXTHOP) String() string
type LocalRoutes ¶
type LocalRoutes struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Configuration data for locally defined routes. Config LocalRoutes_Config // Operational state data for locally defined routes. State LocalRoutes_State // Enclosing container for the list of static routes. StaticRoutes LocalRoutes_StaticRoutes // Enclosing container for locally-defined aggregate routes. LocalAggregates LocalRoutes_LocalAggregates }
LocalRoutes Top-level container for local routes
func (*LocalRoutes) GetEntityData ¶
func (localRoutes *LocalRoutes) GetEntityData() *types.CommonEntityData
type LocalRoutes_Config ¶
type LocalRoutes_Config struct { EntityData types.CommonEntityData YFilter yfilter.YFilter }
LocalRoutes_Config Configuration data for locally defined routes
func (*LocalRoutes_Config) GetEntityData ¶
func (config *LocalRoutes_Config) GetEntityData() *types.CommonEntityData
type LocalRoutes_LocalAggregates ¶
type LocalRoutes_LocalAggregates struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // List of aggregates. The type is slice of // LocalRoutes_LocalAggregates_Aggregate. Aggregate []*LocalRoutes_LocalAggregates_Aggregate }
LocalRoutes_LocalAggregates Enclosing container for locally-defined aggregate routes
func (*LocalRoutes_LocalAggregates) GetEntityData ¶
func (localAggregates *LocalRoutes_LocalAggregates) GetEntityData() *types.CommonEntityData
type LocalRoutes_LocalAggregates_Aggregate ¶
type LocalRoutes_LocalAggregates_Aggregate struct { EntityData types.CommonEntityData YFilter yfilter.YFilter YListKey string // This attribute is a key. Reference to the configured prefix for this // aggregate. The type is one of the following types: string with pattern: // ^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))$, // or string with pattern: // ^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9])$. Prefix interface{} // Configuration data for aggregate advertisements. Config LocalRoutes_LocalAggregates_Aggregate_Config // Operational state data for aggregate advertisements. State LocalRoutes_LocalAggregates_Aggregate_State }
LocalRoutes_LocalAggregates_Aggregate List of aggregates
func (*LocalRoutes_LocalAggregates_Aggregate) GetEntityData ¶
func (aggregate *LocalRoutes_LocalAggregates_Aggregate) GetEntityData() *types.CommonEntityData
type LocalRoutes_LocalAggregates_Aggregate_Config ¶
type LocalRoutes_LocalAggregates_Aggregate_Config struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Aggregate prefix to be advertised. The type is one of the following types: // string with pattern: // ^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))$, // or string with pattern: // ^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9])$. Prefix interface{} // When true, install the aggregate route with a discard next-hop -- traffic // destined to the aggregate will be discarded with no ICMP message generated. // When false, traffic destined to an aggregate address when no constituent // routes are present will generate an ICMP unreachable message. The type is // bool. The default value is false. Discard interface{} // Set a generic tag value on the route. This tag can be used for filtering // routes that are distributed to other routing protocols. The type is one of // the following types: int with range: 0..4294967295, or string with pattern: // ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?. SetTag interface{} }
LocalRoutes_LocalAggregates_Aggregate_Config Configuration data for aggregate advertisements
func (*LocalRoutes_LocalAggregates_Aggregate_Config) GetEntityData ¶
func (config *LocalRoutes_LocalAggregates_Aggregate_Config) GetEntityData() *types.CommonEntityData
type LocalRoutes_LocalAggregates_Aggregate_State ¶
type LocalRoutes_LocalAggregates_Aggregate_State struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Aggregate prefix to be advertised. The type is one of the following types: // string with pattern: // ^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))$, // or string with pattern: // ^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9])$. Prefix interface{} // When true, install the aggregate route with a discard next-hop -- traffic // destined to the aggregate will be discarded with no ICMP message generated. // When false, traffic destined to an aggregate address when no constituent // routes are present will generate an ICMP unreachable message. The type is // bool. The default value is false. Discard interface{} // Set a generic tag value on the route. This tag can be used for filtering // routes that are distributed to other routing protocols. The type is one of // the following types: int with range: 0..4294967295, or string with pattern: // ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?. SetTag interface{} }
LocalRoutes_LocalAggregates_Aggregate_State Operational state data for aggregate advertisements
func (*LocalRoutes_LocalAggregates_Aggregate_State) GetEntityData ¶
func (state *LocalRoutes_LocalAggregates_Aggregate_State) GetEntityData() *types.CommonEntityData
type LocalRoutes_State ¶
type LocalRoutes_State struct { EntityData types.CommonEntityData YFilter yfilter.YFilter }
LocalRoutes_State Operational state data for locally defined routes
func (*LocalRoutes_State) GetEntityData ¶
func (state *LocalRoutes_State) GetEntityData() *types.CommonEntityData
type LocalRoutes_StaticRoutes ¶
type LocalRoutes_StaticRoutes struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // List of locally configured static routes. The type is slice of // LocalRoutes_StaticRoutes_Static. Static []*LocalRoutes_StaticRoutes_Static }
LocalRoutes_StaticRoutes Enclosing container for the list of static routes
func (*LocalRoutes_StaticRoutes) GetEntityData ¶
func (staticRoutes *LocalRoutes_StaticRoutes) GetEntityData() *types.CommonEntityData
type LocalRoutes_StaticRoutes_Static ¶
type LocalRoutes_StaticRoutes_Static struct { EntityData types.CommonEntityData YFilter yfilter.YFilter YListKey string // This attribute is a key. Reference to the destination prefix list key. The // type is one of the following types: string with pattern: // ^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))$, // or string with pattern: // ^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9])$. Prefix interface{} // Configuration data for static routes. Config LocalRoutes_StaticRoutes_Static_Config // Operational state data for static routes. State LocalRoutes_StaticRoutes_Static_State // Configuration and state parameters relating to the next-hops that are to be // utilised for the static route being specified. NextHops LocalRoutes_StaticRoutes_Static_NextHops }
LocalRoutes_StaticRoutes_Static List of locally configured static routes
func (*LocalRoutes_StaticRoutes_Static) GetEntityData ¶
func (static *LocalRoutes_StaticRoutes_Static) GetEntityData() *types.CommonEntityData
type LocalRoutes_StaticRoutes_Static_Config ¶
type LocalRoutes_StaticRoutes_Static_Config struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Destination prefix for the static route, either IPv4 or IPv6. The type is // one of the following types: string with pattern: // ^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))$, // or string with pattern: // ^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9])$. Prefix interface{} // Set a generic tag value on the route. This tag can be used for filtering // routes that are distributed to other routing protocols. The type is one of // the following types: int with range: 0..4294967295, or string with pattern: // ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?. SetTag interface{} }
LocalRoutes_StaticRoutes_Static_Config Configuration data for static routes
func (*LocalRoutes_StaticRoutes_Static_Config) GetEntityData ¶
func (config *LocalRoutes_StaticRoutes_Static_Config) GetEntityData() *types.CommonEntityData
type LocalRoutes_StaticRoutes_Static_NextHops ¶
type LocalRoutes_StaticRoutes_Static_NextHops struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // A list of next-hops to be utilised for the static route being specified. // The type is slice of LocalRoutes_StaticRoutes_Static_NextHops_NextHop. NextHop []*LocalRoutes_StaticRoutes_Static_NextHops_NextHop }
LocalRoutes_StaticRoutes_Static_NextHops Configuration and state parameters relating to the next-hops that are to be utilised for the static route being specified
func (*LocalRoutes_StaticRoutes_Static_NextHops) GetEntityData ¶
func (nextHops *LocalRoutes_StaticRoutes_Static_NextHops) GetEntityData() *types.CommonEntityData
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop ¶
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop struct { EntityData types.CommonEntityData YFilter yfilter.YFilter YListKey string // This attribute is a key. A reference to the index of the current next-hop. // The index is intended to be a user-specified value which can be used to // reference the next-hop in question, without any other semantics being // assigned to it. The type is string. Refers to // local_routing.LocalRoutes_StaticRoutes_Static_NextHops_NextHop_Config_Index Index interface{} // Configuration parameters relating to the next-hop entry. Config LocalRoutes_StaticRoutes_Static_NextHops_NextHop_Config // Operational state parameters relating to the next-hop entry. State LocalRoutes_StaticRoutes_Static_NextHops_NextHop_State // Reference to an interface or subinterface. InterfaceRef LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef }
LocalRoutes_StaticRoutes_Static_NextHops_NextHop A list of next-hops to be utilised for the static route being specified.
func (*LocalRoutes_StaticRoutes_Static_NextHops_NextHop) GetEntityData ¶
func (nextHop *LocalRoutes_StaticRoutes_Static_NextHops_NextHop) GetEntityData() *types.CommonEntityData
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_Config ¶
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_Config struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // An user-specified identifier utilised to uniquely reference the next-hop // entry in the next-hop list. The value of this index has no semantic meaning // other than for referencing the entry. The type is string. Index interface{} // The next-hop that is to be used for the static route - this may be // specified as an IP address, an interface or a pre-defined next-hop type - // for instance, DROP or LOCAL_LINK. When this leaf is not set, and the // interface-ref value is specified for the next-hop, then the system should // treat the prefix as though it is directly connected to the interface. The // type is one of the following types: string with pattern: // ^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$, // or string with pattern: // ^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$., // or :go:struct:`LOCALDEFINEDNEXTHOP // <ydk/models/local_routing/LOCALDEFINEDNEXTHOP>`. NextHop interface{} // A metric which is utilised to specify the preference of the next-hop entry // when it is injected into the RIB. The lower the metric, the more preferable // the prefix is. When this value is not specified the metric is inherited // from the default metric utilised for static routes within the network // instance that the static routes are being instantiated. When multiple // next-hops are specified for a static route, the metric is utilised to // determine which of the next-hops is to be installed in the RIB. When // multiple next-hops have the same metric (be it specified, or simply the // default) then these next-hops should all be installed in the RIB. The type // is interface{} with range: 0..4294967295. Metric interface{} // Determines whether the next-hop should be allowed to be looked up // recursively - i.e., via a RIB entry which has been installed by a routing // protocol, or another static route - rather than needing to be connected // directly to an interface of the local system within the current network // instance. When the interface reference specified within the next-hop entry // is set (i.e., is not null) then forwarding is restricted to being via the // interface specified - and recursion is hence disabled. The type is bool. // The default value is false. Recurse interface{} }
LocalRoutes_StaticRoutes_Static_NextHops_NextHop_Config Configuration parameters relating to the next-hop entry
func (*LocalRoutes_StaticRoutes_Static_NextHops_NextHop_Config) GetEntityData ¶
func (config *LocalRoutes_StaticRoutes_Static_NextHops_NextHop_Config) GetEntityData() *types.CommonEntityData
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef ¶
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Configured reference to interface / subinterface. Config LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_Config // Operational state for interface-ref. State LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_State }
LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef Reference to an interface or subinterface
func (*LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef) GetEntityData ¶
func (interfaceRef *LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef) GetEntityData() *types.CommonEntityData
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_Config ¶
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_Config struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Reference to a base interface. If a reference to a subinterface is // required, this leaf must be specified to indicate the base interface. The // type is string. Refers to interfaces.Interfaces_Interface_Name Interface interface{} // Reference to a subinterface -- this requires the base interface to be // specified using the interface leaf in this container. If only a reference // to a base interface is requuired, this leaf should not be set. The type is // string with range: 0..4294967295. Refers to // interfaces.Interfaces_Interface_Subinterfaces_Subinterface_Index Subinterface interface{} }
LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_Config Configured reference to interface / subinterface
func (*LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_Config) GetEntityData ¶
func (config *LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_Config) GetEntityData() *types.CommonEntityData
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_State ¶
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_State struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Reference to a base interface. If a reference to a subinterface is // required, this leaf must be specified to indicate the base interface. The // type is string. Refers to interfaces.Interfaces_Interface_Name Interface interface{} // Reference to a subinterface -- this requires the base interface to be // specified using the interface leaf in this container. If only a reference // to a base interface is requuired, this leaf should not be set. The type is // string with range: 0..4294967295. Refers to // interfaces.Interfaces_Interface_Subinterfaces_Subinterface_Index Subinterface interface{} }
LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_State Operational state for interface-ref
func (*LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_State) GetEntityData ¶
func (state *LocalRoutes_StaticRoutes_Static_NextHops_NextHop_InterfaceRef_State) GetEntityData() *types.CommonEntityData
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_State ¶
type LocalRoutes_StaticRoutes_Static_NextHops_NextHop_State struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // An user-specified identifier utilised to uniquely reference the next-hop // entry in the next-hop list. The value of this index has no semantic meaning // other than for referencing the entry. The type is string. Index interface{} // The next-hop that is to be used for the static route - this may be // specified as an IP address, an interface or a pre-defined next-hop type - // for instance, DROP or LOCAL_LINK. When this leaf is not set, and the // interface-ref value is specified for the next-hop, then the system should // treat the prefix as though it is directly connected to the interface. The // type is one of the following types: string with pattern: // ^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$, // or string with pattern: // ^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$., // or :go:struct:`LOCALDEFINEDNEXTHOP // <ydk/models/local_routing/LOCALDEFINEDNEXTHOP>`. NextHop interface{} // A metric which is utilised to specify the preference of the next-hop entry // when it is injected into the RIB. The lower the metric, the more preferable // the prefix is. When this value is not specified the metric is inherited // from the default metric utilised for static routes within the network // instance that the static routes are being instantiated. When multiple // next-hops are specified for a static route, the metric is utilised to // determine which of the next-hops is to be installed in the RIB. When // multiple next-hops have the same metric (be it specified, or simply the // default) then these next-hops should all be installed in the RIB. The type // is interface{} with range: 0..4294967295. Metric interface{} // Determines whether the next-hop should be allowed to be looked up // recursively - i.e., via a RIB entry which has been installed by a routing // protocol, or another static route - rather than needing to be connected // directly to an interface of the local system within the current network // instance. When the interface reference specified within the next-hop entry // is set (i.e., is not null) then forwarding is restricted to being via the // interface specified - and recursion is hence disabled. The type is bool. // The default value is false. Recurse interface{} }
LocalRoutes_StaticRoutes_Static_NextHops_NextHop_State Operational state parameters relating to the next-hop entry
func (*LocalRoutes_StaticRoutes_Static_NextHops_NextHop_State) GetEntityData ¶
func (state *LocalRoutes_StaticRoutes_Static_NextHops_NextHop_State) GetEntityData() *types.CommonEntityData
type LocalRoutes_StaticRoutes_Static_State ¶
type LocalRoutes_StaticRoutes_Static_State struct { EntityData types.CommonEntityData YFilter yfilter.YFilter // Destination prefix for the static route, either IPv4 or IPv6. The type is // one of the following types: string with pattern: // ^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))$, // or string with pattern: // ^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))/(12[0-8]|1[0-1][0-9]|[1-9][0-9]|[0-9])$. Prefix interface{} // Set a generic tag value on the route. This tag can be used for filtering // routes that are distributed to other routing protocols. The type is one of // the following types: int with range: 0..4294967295, or string with pattern: // ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?. SetTag interface{} }
LocalRoutes_StaticRoutes_Static_State Operational state data for static routes
func (*LocalRoutes_StaticRoutes_Static_State) GetEntityData ¶
func (state *LocalRoutes_StaticRoutes_Static_State) GetEntityData() *types.CommonEntityData