Config

Leafs

class NetworkInstances.NetworkInstance.Mpls.Lsps.ConstrainedPath.Tunnels.Tunnel.Config

Bases: Entity

Class Hierarchy: NetworkInstances NetworkInstance Mpls Lsps ConstrainedPath Tunnels Tunnel Config

This class represents configuration data.

Configuration parameters related to TE tunnels:

name

The tunnel name

type: str

type

Tunnel type, p2p or p2mp

type: one of the below values: P2P

signaling_protocol

Signaling protocol used to set up this tunnel

type: one of the below values: PATHSETUPRSVP

description

optional text description for the tunnel

type: str

admin_status

TE tunnel administrative state

type: one of the below values: ADMINDOWN

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
metric_type

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

type: one of the below values: LSPMETRICRELATIVE

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
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

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

default value: oc-mplst:UNPROTECTED

reoptimize_timer

frequency of reoptimization of a traffic engineered LSP

type: int

range: 0..65535

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

Enables RSVP soft-preemption on this LSP

type: bool

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

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

default value: 0