State

Leafs

Children

class Mpls.Lsps.ConstrainedPath.Tunnels.Tunnel.State

Bases: Entity

Class Hierarchy: Mpls Lsps ConstrainedPath Tunnels Tunnel State

This class represents state data.

State parameters related to TE tunnels

name

The tunnel name

type: str

config: False

type

Tunnel type, p2p or p2mp

type: one of the below values: P2P

config: False

signaling_protocol

Signaling protocol used to set up this tunnel

type: one of the below values: PATHSETUPRSVP

config: False

description

optional text description for the tunnel

type: str

config: False

admin_status

TE tunnel administrative state

type: one of the below values: ADMINDOWN

config: False

default value: oc-mplst:ADMIN_UP

preference

Specifies a preference for this tunnel. A lower number signifies a better preference

type: int

range: 1..255

config: False

metric_type

The type of metric specification that should be used to set the LSP(s) metric

type: one of the below values: LSPMETRICRELATIVE

config: False

default value: oc-mplst:LSP_METRIC_INHERITED

metric

The value of the metric that should be specified. The value supplied in this leaf is used in conjunction with the metric type to determine the value of the metric used by the system. Where the metric-type is set to LSP_METRIC_ABSOLUTE - the value of this leaf is used directly; where it is set to LSP_METRIC_RELATIVE, the relevant (positive or negative) offset is used to formulate the metric; where metric-type is LSP_METRIC_INHERITED, the value of this leaf is not utilised

type: int

range: -2147483648..2147483647

config: False

shortcut_eligible

Whether this LSP is considered to be eligible for us as a shortcut in the IGP. In the case that this leaf is set to true, the IGP SPF calculation uses the metric specified to determine whether traffic should be carried over this LSP

type: bool

config: False

default value: true

protection_style_requested

style of mpls frr protection desired: can be link, link-node or unprotected

type: one of the below values: UNPROTECTED

config: False

default value: oc-mplst:UNPROTECTED

reoptimize_timer

frequency of reoptimization of a traffic engineered LSP

type: int

range: 0..65535

config: False

units: seconds

source

RSVP-TE tunnel source address

type: union of the below types:

type: str

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])$

type: str

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}|:))$

config: False

soft_preemption

Enables RSVP soft-preemption on this LSP

type: bool

config: False

default value: false

setup_priority

RSVP-TE preemption priority during LSP setup, lower is higher priority; default 7 indicates that LSP will not preempt established LSPs during setup

type: int

range: 0..7

config: False

default value: 7

hold_priority

preemption priority once the LSP is established, lower is higher priority; default 0 indicates other LSPs will not preempt the LSPs once established

type: int

range: 0..7

config: False

default value: 0

oper_status

The operational status of the TE tunnel

type: one of the below values: DOWN

config: False

role

The lsp role at the current node, whether it is headend, transit or tailend

type: one of the below values: INGRESS

config: False

counters

State data for MPLS label switched paths. This state data is specific to a single label switched path

type: Counters

config: False