cfd port-trigger

Use cfd port-trigger to specify the triggered event and triggered action for port collaboration.

Use undo cfd port-trigger to cancel the triggered event and triggered action for port collaboration.

Syntax

cfd port-trigger { cc-expire | rdi } action { block | shutdown }

undo cfd port-trigger { cc-expire | rdi } action

Default

The triggered event and triggered action are not specified for port collaboration.

Views

Layer 2 Ethernet interface view

Layer 2 aggregate interface view

Predefined user roles

network-admin

Parameters

cc-expire: Triggers port collaboration when continuity check expires.

rdi: Triggers port collaboration when the CCMs with the RDI flag bits set are received.

block: Blocks the port by changing its link layer state to DOWN. Data packets are not allowed to be sent and received on the port.

shutdown: Shuts down the port by changing its state to CFD DOWN. Data packets and protocol packets are not allowed to be sent and received on the port.

Usage guidelines

The command takes effect only on the ports with outward-facing MEPs configured.

You can specify multiple triggered events for an interface. All the triggered events can take effect. When you specify multiple triggered actions for a triggered event on an interface, the most recent configuration takes effect.

With this command configured, a port takes the specified triggered action when the outward-facing MEP on the port detects a link fault.

If a port is blocked by CFD, it can automatically come up when the link recovers.

If a port is shut down by CFD, it cannot automatically come up when the link recovers. To bring up the port, you must execute the undo cfd port-trigger { cc-expire | rdi } action command.

Examples

# Specify the triggered event as cc-expire and the triggered action as block for port collaboration on Ten-GigabitEthernet 1/0/1.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] cfd port-trigger cc-expire action block

# Specify the triggered event as cc-expire and the triggered action as shutdown for port collaboration on Ten-GigabitEthernet 1/0/1.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] cfd port-trigger cc-expire action shutdown

Related commands