if-match extcommunity-list segmented-nh

Function

The if-match extcommunity-list segmented-nh command configures a segmented-nh attribute-based match rule.

The undo if-match extcommunity-list segmented-nh command deletes a segmented-nh attribute-based match rule.

By default, no segmented-nh attribute-based match rule is configured.

Format

if-match extcommunity-list segmented-nh segmented-nh-name

undo if-match extcommunity-list segmented-nh segmented-nh-name

Parameters

Parameter Description Value
segmented-nh-name

Specifies a name for a segmented-nh attribute list.

The value is a string of 1 to 51 characters.

Views

Route-policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

Segmented-nh (with the full name being segmented nexthop) attributes are extended community attributes that can be carried in intra-AS I-PMSI A-D routes in NG MVPN scenarios. If you want a device to match NG MVPN routes based on segmented-nh attributes in segmented NG MVPN scenarios, run the if-match extcommunity-list segmented-nh command to configure a segmented-nh attribute-based match rule.

The relationship between the if-match clauses in a node of a route-policy is "AND". A route must match all the rules before the action defined by the apply clause is taken. If no if-match clause is specified, all routes will match the node in the route-policy.

Prerequisites

A route-policy has been configured using the route-policy command.

Example

# Configure a segmented-nh attribute-based match rule.
<HUAWEI> system-view
[~HUAWEI] ip extcommunity-list segmented-nh basic a permit 1.1.1.1:5
[*HUAWEI] route-policy policy permit node 10
[*HUAWEI-route-policy] if-match extcommunity-list segmented-nh a
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >