Skip to content

mpls_route_types.proto

Messages

MplsFecId

Represents a forward equivalency class (FEC) for an MPLS route. One or more routes point to a FEC. The FEC corresponds to a set of MPLS vias that are programmed into hardware.

EosSdk reference: eos::mpls_fec_id_t

Name Value Description
id uint64

MplsRoute

An MPLS v4/v6 static route.

EosSdk reference: eos::mpls_route_t

Name Value Description
key MplsRouteKey
oneof _version_id.version_id optional uint32 MPLS route version in range <1-65535>
oneof _on_primary_via_restored.on_primary_via_restored optional MplsOnPrimaryViaRestored Behaviour when the primary via returns after transistion to backup.

MplsRouteKey

An MPLS route key. Used for MPLS RIB configuration.

EosSdk reference: eos::mpls_route_key_t

Name Value Description
labels repeated MplsLabel
metric uint32 Must be in range 0 to 255.

MplsRouteVia

An MPLS route via, defining the action to take for a specified MPLS route.

EosSdk reference: eos::mpls_route_via_t

Name Value Description
route_key MplsRouteKey
hop bytes
intf IntfId
pushswap_label repeated MplsLabel
label_action MplsActions
ttl_mode MplsTtlMode
payload_type MplsPayloadType
skip_egress_acl bool
nexthop_group string
weight uint32 Defaults to 1 if not specified

Enums

MplsOnPrimaryViaRestored

Defines the expected forwarding behaviour for a route when the primary via is restored after going down.

The route will revert back to an available primary via if a config update is pushed regardless of this value.

EosSdk reference: eos::mpls_on_primary_via_restored_t

Name Value Description
MPLS_ON_PRIMARY_VIA_RESTORED_NULL 0
MPLS_ON_PRIMARY_VIA_RESTORED_REVERT_TO_PRIMARY 1
MPLS_ON_PRIMARY_VIA_RESTORED_STAY_ON_BACKUP 2

ViaSetProgrammedHwState

Programmed hardware state of the MPLS route's via set

Name Value Description
VIA_SET_HW_UNKNOWN 0
VIA_SET_HW_DROP 1
VIA_SET_HW_PARTIALLY_PROGRAMMED 2
VIA_SET_HW_ALL_PROGRAMMED 3