LdpRouterConfig Object


Description:

Defines an LDP emulated router object.

Parents: EmulatedDevice

Children: CustomPdu, GeneralizedPwidLsp, Ipv4IngressPrefixLsp, Ipv4PrefixLsp, Ipv6IngressPrefixLsp, Ipv6PrefixLsp, P2mpLsp, VcLsp

Automatically-created children: LdpAuthenticationParams

Result children (automatically created): LdpLspResults, LdpRouterResults

Relations:

Side name
(Type)
Relative Description
ViewControlPlaneMplsBindingResult
(ControlPlaneBindingResult)

ViewControlPlaneMplsBindingResult

View Control Plane Mpls Binding Result Data Set

ConvergenceConfig
(PrimaryPathProtocolConfig)

ConvergenceConfig, ConvergenceConfig

Configure PrimanryPath


(ResolvesInterface)

Aal5If, EthIIIf, FcIf, GreIf, GroupIf, HdlcIf, Ipv4If, Ipv6If, Ipv6SrhIf, ItagIf, L2tpv2If, L2tpv3If, LdpCustomTlv, LdpCustomTlv, LdpCustomTlv, LdpCustomTlv, LdpCustomTlv, LdpCustomTlv, LdpCustomTlv, LdpCustomTlv, LispIf, MacsecIf, MplsIf, PppIf, PppoeIf, TrillIf, VbrasIf, VlanIf, VxlanGpeIf, VxlanIf

Use this to link the traffic binding interfaces and traffic binding resolver.

ResultChild
(ResultChild)

LdpLspResults, LdpRouterResults

Use this to connect a results object to an object.

TimeComparisonPair
(TimeComparisonPairSrcProtocol)

TsnProtocolsTimeComparisonPair, TsnProtocolsTimeComparisonPair

LdpRouterConfig Writable Attributes

Attribute Description
AdjacencyVersion

Configure LDP Adjacency

Type: enum

Default: LDP_IPV4_ADJACENCY

Possible Values:

Value Description
LDP_IPV4_ADJACENCY

IPv4 Adjacency

LDP_IPV6_ADJACENCY

IPv6 Adhacency

LDP_FIRST_ADJACENCY

First Adjacency

DirectedHelloInterval

Directed Hello interval (sec).

Type: u16

Default: 5

Range: 1 - 21845

DutIp

Session DUT IP address. Each LDP session must have a DUT IP address. This IPv4 address is used as the peer address of the emulated LDP session.

DUT IP address is not the same as tester IP. This is used to set up the DUT IP. For a direct LDP session, it can be either the DUT loopback address or its interface address directly connected to Spirent TestCenter. For a target LDP session, it must be the DUT router ID (usually a loopback address).

Type: ip

Default: null

DutIpv6

Session DUT IP V6 address.

Type: ipv6

Default: null

EgressLabel

Egress label advertised by the emulated peer.

Type: enum

Default: LDP_EGRESS_NEXTAVAILABLE

Possible Values:

Value Description
LDP_EGRESS_NEXTAVAILABLE

Next available.

For each FEC, the LSR advertises the next available label from the min label to max label pool.

LDP_EGRESS_IMPLICIT_NULL

Implicit null.

This label value is used in an LDP or RSVP packet to enable penultimate hop label popping.

LDP_EGRESS_EXPLICIT_NULL

Explicit null.

Explicit null instructions are signaled to the penultimate router by the egress router.

EnableBfd

Enable or disable BFD (bidirectional forwarding detection) for this router. You must also create a BfdRouterConfig object under the parent Router object.

Type: bool

Default: FALSE

Possible Values:

Value Description
TRUE

Enable BFD.

FALSE

Disable BFD.

EnableGracefulRestart

Enables/disables graceful restart. (Select to enable.) If enabled, the timer parameters must be set and the LDPRestartRouterCommand is available in the sequencer.

Type: bool

Default: FALSE

Possible Values:

Value Description
TRUE

Enables LDP graceful restart.

FALSE

Disables LDP graceful restart.

EnableLspResults

Enable LSP results.

Type: bool

Default: TRUE

Possible Values:

Value Description
TRUE

Enable LSP results.

FALSE

Disable LSP results.

EnableMplsBypass

Enables/disables EnableMplsBypass Flag. (Select to enable.) If enabled, then LDP session does not include MPLS Label in control packet

Type: bool

Default: FALSE

Possible Values:

Value Description
TRUE

Enable MPLS Bypass.

FALSE

Disable MPLS Bypass

EnableStatefulPseudowireLspResults

Enable stateful pseudowire LSP results.

Type: bool

Default: FALSE

Possible Values:

Value Description
TRUE

Enable stateful pseudowire LSP results.

FALSE

Disable stateful pseudowire LSP results.

GeneralizedPwidLspLabelBindingMode

Generalized PW ID LSP label binding mode.

Type: enum

Default: TX_AND_RX

Possible Values:

Value Description
TX_AND_RX

Transmit and receive.

TX_ONLY

Transmit only.

RX_ONLY

Receive only.

NONE

Not set.

HelloInterval

NOTE: This attribute is deprecated. It will be removed in subsequent releases, so it is recommended that you do not use it.

Hello interval.

Type: u16

Default: 5

Range: 1 - 21845

HelloType

Type of hello packet transmitted by the emulated peer.

Type: enum

Default: LDP_DIRECTED_HELLO

Possible Values:

Value Description
LDP_DIRECTED_HELLO

Directed hello.

LDP_TARGETED_HELLO

Targeted hello.

LDP_DIRECTED_AND_TARGETED_HELLO

Directed and Targeted Hello

HelloVersion

LDP Hello Version

Type: enum

Default: LDP_IPV4_HELLO

Possible Values:

Value Description
LDP_IPV4_HELLO

IPv4 Hello

LDP_IPV6_HELLO

IPv6 Hello

LDP_IPV4_AND_IPV6_HELLO

IPv4 and IPv6 Hello

KeepAliveInterval

Keepalive time (in seconds) proposed in the initialization message sent by the peer.

Type: u16

Default: 60

Range: 1 - 21845

LabelAdvertisementMode

Label advertisement mode for the LDP router.

Type: enum

Default: DOWNSTREAM_UNSOLICITED

Possible Values:

Value Description
DOWNSTREAM_UNSOLICITED

Downstream Unsolicited

DOWNSTREAM_ON_DEMAND

Downstream On Demand

LabelMin

Minimum label sent by the emulated router (To optimize test module performance, use label range settings that are suitable for the test.)

Type: u32

Default: 16

Range: 0 - 1048575

LabelRequestRetryCount

Number of times label request message should be sent for the configured ingress LSPs. Applicable only when label advertisement mode is downstream-on-demand.

Type: u16

Default: 10

LabelRequestRetryInterval

Interval in seconds between consecutive label request messages sent for the configured ingress LSPs. Applicable only when label advertisement mode is downstream-on-demand.

Type: u16

Default: 30

LdpInitiator

LDP initiator flag

Type: bool

Default: FALSE

Possible Values:

Value Description
TRUE

Emulated LDP router initiates the session.

FALSE

Emulated LDP router listens for the peer to initiate the session.

LdpVersion

Configure LDP version

Type: enum

Default: VERSION_1

Possible Values:

Value Description
VERSION_1

Version 1

VERSION_2

Version 2

LivenessTime

Neighbor liveness time interval (sec).

Type: u16

Default: 360

Range: 120 - 600

PrefixLspLabelBindingMode

Label binding mode for Prefix FEC type.

Type: enum

Default: TX_AND_RX

Possible Values:

Value Description
TX_AND_RX

Labels received by Spirent TestCenter and advertised by it are used for traffic binding.

TX_ONLY

Only labels advertised by Spirent TestCenter are used for traffic binding.

RX_ONLY

Only labels received by Spirent TestCenter are used for traffic binding.

NONE

No labels are used for traffic binding.

PseudowireRedundancyMode

Pseudowire redundancy mode.

Type: enum

Default: PSEUDOWIRE_REDUNDANCY_MODE_NONE

Possible Values:

Value Description
PSEUDOWIRE_REDUNDANCY_MODE_NONE

None.

PSEUDOWIRE_REDUNDANCY_MODE_INDEPENDENT

Independent.

PSEUDOWIRE_REDUNDANCY_MODE_MASTER

Master.

PSEUDOWIRE_REDUNDANCY_MODE_SLAVE

Slave.

ReconnectTime

Reconnect time. Applicable only when graceful restart is enabled.

Type: u32

Default: 60

Range: 0 - 4294967

RecoveryTime

Recovery time. Applicable only when graceful restart is enabled.

Type: u32

Default: 140

Range: 0 - 4294967

TargetedHelloInterval

Targeted hello interval (sec).

Type: u16

Default: 5

Range: 1 - 21845

TransportTlvMode

Transport TLV mode.

Type: enum

Default: TRANSPORT_TLV_MODE_TESTER_IP

Possible Values:

Value Description
TRANSPORT_TLV_MODE_NONE

None.

TRANSPORT_TLV_MODE_TESTER_IP

Emulated router interface address.

TRANSPORT_TLV_MODE_ROUTER_ID

Emulated router ID.

UseStaticFlowLabel

Use static flow label.

Type: bool

Default: FALSE

Possible Values:

Value Description
TRUE

Use static flow label.

FALSE

Do not use static flow label.

VcLspLabelBindingMode

Label binding mode for VC FEC type.

Type: enum

Default: TX_AND_RX

Possible Values:

Value Description
TX_AND_RX

Labels received by Spirent TestCenter and advertised by it are used for traffic binding.

TX_ONLY

Only labels advertised by Spirent TestCenter are used for traffic binding.

RX_ONLY

Only labels received by Spirent TestCenter are used for traffic binding.

NONE

No labels are used for traffic binding.

LdpRouterConfig Read-Only Attributes

Read-Only Attribute Description
LabelSpaceId

Platform-wide label space ID (read only) Only a platform label space of 0 is supported.

Type: u16

Default: 0

LearnedLabelCount

Number of learned labels.

Type: u32

Default: 0

ResolvedLabelCount

Number of resolved labels.

Type: u32

Default: 0

RouterState

LDP router state.

Type: enum

Default: LDP_SESSION_STATE_NO_STATE

Possible Values:

Value Description
LDP_SESSION_STATE_NO_STATE

No state

LDP_SESSION_STATE_DOWN

Down

LDP_SESSION_STATE_UP

Up

LDP_SESSION_STATE_FAILED

Failed

LDP_SESSION_STATE_OPEN

Open

LDP_SESSION_STATE_CONNECT

Connect

LDP_SESSION_STATE_RESTART

Restart

LDP_SESSION_STATE_HELPER

Helper

UnResolvedLabelCount

Number of unresolved labels.

Type: u32

Default: 0