< Home

Data Model

The configuration model file matching routing policies is huawei-route-policy.yang.

Table 1 Routing policy

Object

Description

Value Remarks

/huawei-route-policy:prefix-lists/prefix-list/prefix-list-name

Indicates the name of an IP prefix list.

The value is a string of 1 to 169 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

N/A

/huawei-route-policy:prefix-lists/prefix-list/prefixes/prefix/seq-nr

Indicates the sequence number of an entry in an IP prefix list.

The value is an integer in the range from 1 to 4294967295. A maximum of 65535 entries can be configured in an IP prefix list.

N/A

/huawei-route-policy:prefix-lists/prefix-list/prefixes/prefix/prefix-filter/match-mode

Indicates the match mode of an IP prefix list.

The value is of the enumerated type:
  • permit
  • deny

N/A

/huawei-route-policy:prefix-lists/prefix-list/prefixes/prefix/prefix-filter/ip-address

Indicates the IP address and mask length of an IP prefix list.

The format is ipv4-address/mask-length:
  • ipv4-address indicates an IP address in dotted decimal notation.
  • mask-length indicates the mask length, which is an integer in the range from 0 to 32.

N/A

/huawei-route-policy:prefix-lists/prefix-list/prefixes/prefix/prefix-filter/greater-equal

Indicates the shortest mask length.

The value is an integer in the range from 0 to 32.

  • The value range is: mask-length ≤ greater-equal-value ≤ less-equal-value ≤ 32.
  • If only greater-equal is configured, the mask length is in the range from greater-equal-value to 32.

/huawei-route-policy:prefix-lists/prefix-list/prefixes/prefix/prefix-filter/less-equal

Indicates the longest mask length.

The value is an integer in the range from 0 to 32.

  • The value range is: mask-length ≤ greater-equal-value ≤ less-equal-value ≤ 32.
  • If only less-equal is configured, the mask length is in the range from mask-length to less-equal-value.

/huawei-route-policy:prefix-lists/prefix-list/prefixes/prefix/prefix-filter/match-network

Indicates whether to match a network address.

The value is of the Boolean type:
  • true: A network address is used to match routes.
  • false: A network address is not used to match routes.
The default value is false.

N/A

/huawei-route-policy:route-policys/route-policy/name

Indicates the name of a route-policy.

The value is a string of 1 to 40 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

N/A

/huawei-route-policy:route-policys/route-policy/nodes/node/node-index

Indicates the node index of a route-policy.

The value is an integer in the range from 0 to 65535.

N/A

/huawei-route-policy:route-policys/route-policy/nodes/node/match-mode

Indicates the match mode of a node in a route-policy.

The value is of the enumerated type:
  • permit
  • deny

N/A

/huawei-route-policy:route-policys/route-policy/nodes/node/match-condition/destination/destination-mode/prefix-name/prefix-name

Indicates the name of an IP prefix list used to match routes.

The value is a string of 1 to 169 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

  • Before configuring this object, you need to configure the

    /huawei-route-policy:prefix-lists/prefix-list/prefix-list-name

    object.
  • In the same node of a route-policy, if this object is configured together with the /huawei-route-policy:route-policys/route-policy/nodes/node/match-condition/destination/destination-mode/acl-name-or-num/acl-name-or-num object, the latter overwrites the first (existing) configuration.

/huawei-route-policy:route-policys/route-policy/nodes/node/match-condition/destination/destination-mode/acl-name-or-num/acl-name-or-num

Indicates the number or name of the ACL used in a route-policy.

  • ACL number: is an integer in the range from 2000 to 2999.
  • ACL name: is a string of 1 to 64 case-sensitive characters without spaces and must start with a letter.

In the same node of a route-policy, if this object is configured together with the /huawei-route-policy:route-policys/route-policy/nodes/node/match-condition/destination/destination-mode/prefix-name/prefix-name object, the latter overwrites the first (existing) configuration.

/huawei-route-policy:route-policys/route-policy/nodes/node/apply-action/apply-cost/cost-value

Indicates the new cost applied to the routes that match a route-policy.

The value is an integer in the range from 0 to 4294967295.

N/A

/huawei-route-policy:route-policys/route-policy/nodes/node/apply-action/applay-tag-value

Indicates the new tag applied to the routes that match a route-policy.

The value is an integer in the range from 0 to 4294967295.

N/A

/huawei-route-policy:route-policys/route-policy/nodes/node/apply-action/preference

Indicates the new priority applied to the routes that match a route-policy.

The value is an integer in the range from 1 to 255.

N/A

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >