cfd port-trigger

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

Use undo cfd port-trigger to cancel the triggering 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 triggering 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 protocol state to DOWN (CFD). The port cannot send or receive any data packets.

shutdown: Shuts down the port by changing its physical state to CFD DOWN. The port cannot send or receive any data packets or protocol packets.

Usage guidelines

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

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.

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

Examples

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

<Sysname> system-view
[Sysname] interface fortygige 1/0/1
[Sysname-FortyGigE1/0/1] cfd port-trigger cc-expire action block

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

<Sysname> system-view
[Sysname] interface fortygige 1/0/1
[Sysname-FortyGigE1/0/1] cfd port-trigger cc-expire action shutdown

Related commands

cfd cc enable

cfd mep