< Home

Data Model

The configuration model files matching MQC management are huawei-mqc.yang and huawei-mqc-apply.yang.

Table 1 MQC management

Object

Description

Value

Remarks

/huawei-mqc:mqc/traffic-classifier/name

Indicates the name of a traffic classifier.

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

N/A

/huawei-mqc:mqc/traffic-classifier/operator

Indicates the logical relationship between rules in a traffic classifier.

Boolean value:

  • true: The logical relationship between rules in a traffic classifier is AND.

  • false: The logical relationship between rules in a traffic classifier is OR.

The default value is false.

N/A

/huawei-mqc:mqc/traffic-classifier/operator/match-condition/acl

Indicates the number or name of an ACL.

When an ACL number is used, the value is an integer in the range from 2000 to 5999.

  • ACLs numbered 2000 to 2999 are basic ACLs, which are used to classify all packets.

  • ACLs numbered 3000 to 3999 are advanced ACLs, which are used to classify packets based on Layer 3 information.

  • ACLs numbered 4000 to 4999 are Layer 2 ACLs, which are used to classify packets based on the source MAC address, destination MAC address, and packet type.

  • ACLs numbered 5000 to 5999 are user-defined ACLs.

When an ACL name is used, the ACL name must have been created.

N/A

/huawei-mqc:mqc/traffic-classifier/operator/match-condition/packet-field/named-field/named-field/dot1p

Indicates the 802.1p priority in VLAN packets.

The value is an integer in the range from 0 to 7. A larger value indicates a higher priority.

N/A

/huawei-mqc:mqc/traffic-classifier/operator/match-condition/packet-field/named-field/named-field/vlan/start-vlan

Indicates the start outer VLAN ID.

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

N/A

/huawei-mqc:mqc/traffic-classifier/operator/match-condition/packet-field/named-field/named-field/vlan/end-vlan

Indicates the end outer VLAN ID.

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

The end outer VLAN ID must be larger than the start outer VLAN ID.

If end-vlan is not specified, only the VLAN ID specified by start-vlan is matched.

/huawei-mqc:mqc/traffic-classifier/operator/match-condition/packet-field/named-field/named-field/ip-priority-format/dscp-name/dscp-name

Indicates the DSCP priority name in IP packets.

The value is a character string and is af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cs1, cs2, cs3, cs4, cs5, cs6, cs7, default-dscp, or ef.

This object cannot be configured with ip-priority-format/dscp-value/dscp-value in a traffic classifier simultaneously.

/huawei-mqc:mqc/traffic-classifier/operator/match-condition/packet-field/named-field/named-field/ip-priority-format/dscp-value/dscp-value

Indicates the DSCP priority value in IP packets.

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

This object cannot be configured with ip-priority-format/dscp-name/dscp-name in a traffic classifier simultaneously.

/huawei-mqc:mqc/traffic-classifier/operator/match-condition/packet-field/named-field/named-field/any

Indicates that all packets are matched.

The value is a string. The value is any-packet.

N/A

/huawei-mqc:mqc/traffic-behaviour/name

Indicates the name of a traffic behavior.

The value is a string of 1 to 64 case-sensitive characters without spaces. When double quotation marks are used around the string, spaces are allowed in the string.

N/A

/huawei-mqc:mqc/traffic-behaviour/action

Indicates the action taken for packets.

Enumerated value. The values are as follows:

  • permit: The switch is configured to forward packets matching rules based on the original policy.

  • deny: The switch rejects packets matching rules.

N/A

/huawei-mqc:mqc/traffic-behaviour/remark-dot1p

Indicates that 802.1p priorities of VLAN packets are re-marked.

The value is an integer in the range from 0 to 7. A larger value indicates a higher priority.

This object cannot be configured with redirect or remark-local-precedence in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/remark-dscp/dscp-name/dscp-name

Indicates that the DSCP priority name of IP packets is re-marked.

The value is a character string and is af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cs1, cs2, cs3, cs4, cs5, cs6, cs7, default-dscp, or ef.

This object cannot be configured with remark-dscp/dscp-value/dscp-value in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/remark-dscp/dscp-value/dscp-value

Indicates that the DSCP priority value of IP packets is re-marked.

The value is an integer in the range from 0 to 63. A larger value indicates a higher priority.

This object cannot be configured with remark-dscp/dscp-name/dscp-name in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/remark-local-precedence/local-precedence/precedence-name

Indicates that the local priority name of IP packets is re-marked.

The value is a character string and is af1, af2, af3, af4, be, cs6, cs7, or ef.

This object cannot be configured with precedence-value or remark-dot1p in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/remark-local-precedence/precedence-value/precedence-value

Indicates that the local priority value of IP packets is re-marked.

The value is an integer in the range from 0 to 7. A larger value indicates a higher priority.

This object cannot be configured with precedence-name or remark-dot1p in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/remark-local-precedence/precedence-value/color

Indicates the color of packets that correspond to a local priority.

Enumerated value. The values are as follows:

  • green

  • yellow

  • red

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this object.

/huawei-mqc:mqc/traffic-behaviour/car/cir

Indicates the CIR.

The value is an integer in the range from 8 to 4294967295, in kbit/s.

N/A

/huawei-mqc:mqc/traffic-behaviour/car/max-rate/pir/pir

Indicates the PIR.

The value is an integer in the range from 8 to 4294967295, in kbit/s. The PIR must be greater than or equal to the CIR. The default PIR is equal to the CIR.

N/A

/huawei-mqc:mqc/traffic-behaviour/car/cbs

Indicates the CBS.

The value is an integer in the range from 4000 to 4294967295, in bytes. The default CBS is 125 times the CIR.

If the default CBS is smaller than 4000 because the CIR is small, the switch uses the CBS of 4000.

If the default CBS is larger than 4294967295 because the CIR is large, the switch uses the CBS of 4294967295.

N/A

/huawei-mqc:mqc/traffic-behaviour/car/max-burst-size/pbs/pbs

Indicates the PBS.

The value is an integer in the range from 4000 to 4294967295, in bytes. If the PIR is not set, the default PBS is 125 times the CIR. If the PIR is set, the default PBS is 125 times the PIR.

If the default PBS is smaller than 4000 because the CIR or PIR is small, the switch uses the PBS of 4000.

If the default PBS is larger than 4294967295 because the CIR or PIR is large, the switch uses the PBS of 4294967295.

N/A

/huawei-mqc:mqc/traffic-behaviour/car/green/processing

Indicates the mode in which green packets are processed.

Enumerated value. The values are as follows:
  • pass: Packets are allowed to pass through.

  • discard: Packets are discarded.

The S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI only support pass.

/huawei-mqc:mqc/traffic-behaviour/car/green/service-class/service-class-name/service-class-name

Indicates that the 802.1p priority of green packets is re-marked.

The value is a character string and is af1, af2, af3, af4, be, cs6, cs7, or ef.

Only the S5720-EI, S6720-EI, and S6720S-EI support this object.

This object cannot be configured with green/service-class/service-class-value/service-class-value in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/car/green/service-class/service-class-value/service-class-value

Indicates that the 802.1p priority of green packets is re-marked.

The value is an integer in the range from 0 to 7. A larger value indicates a higher priority.

Only the S5720-EI, S6720-EI, and S6720S-EI support this object.

This object cannot be configured with green/service-class/service-class-name/service-class-name in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/car/yellow/processing

Indicates the mode in which yellow packets are processed.

Enumerated value. The values are as follows:

  • pass: Packets are allowed to pass through.

  • discard: Packets are discarded.

This object must be set to discard if green/processing is discard.

/huawei-mqc:mqc/traffic-behaviour/car/yellow/service-class/service-class-name/service-class-name

Indicates that the 802.1p priority of yellow packets is re-marked.

The value is a character string and is af1, af2, af3, af4, be, cs6, cs7, or ef.

This object can be configured only when the value of yellow/processing is pass.

This object cannot be configured with yellow/service-class/service-class-value/service-class-value in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/car/yellow/service-class/service-class-value/service-class-value

Indicates that the 802.1p priority of yellow packets is re-marked.

The value is an integer in the range from 0 to 7. A larger value indicates a higher priority.

This object can be configured only when the value of yellow/processing is pass.

This object cannot be configured with yellow/service-class/service-class-name/service-class-name in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/car/red/processing

Indicates the mode in which red packets are processed.

Enumerated value. The values are as follows:

  • pass: Packets are allowed to pass through.

  • discard: Packets are discarded.

This object must be set to discard if yellow/processing is discard.

/huawei-mqc:mqc/traffic-behaviour/car/red/service-class/service-class-name/service-class-name

Indicates that the 802.1p priority of red packets is re-marked.

The value is a character string and is af1, af2, af3, af4, be, cs6, cs7, or ef.

This object can be configured only when the value of red/processing is pass.

This object cannot be configured with red/service-class/service-class-value/service-class-value in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/car/red/service-class/service-class-value/service-class-value

Indicates that the 802.1p priority of red packets is re-marked.

The value is an integer in the range from 0 to 7. A larger value indicates a higher priority.

This object can be configured only when the value of red/processing is pass.

This object cannot be configured with red/service-class/service-class-name/service-class-name in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/redirect/destination/interface/interface

Indicates the interface where traffic is redirected.

The value is a string and is in the format of interface-typeinterface-number.

This object cannot be configured with destination/next-hop/next-hop or remark-dot1p in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/redirect/destination/next-hop/next-hop/next-hop-ip

Indicates the next-hop IP address where traffic is redirected.

The value is in dotted decimal notation.

This object cannot be configured with /destination/interface/interface or remark-dot1p in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/redirect/destination/next-hop/next-hop/nexthop-extend/track-nqa/admin-name

Indicates the administrator name of an NQA test instance.

The value is a string of 1 to 32 case-sensitive characters, excluding question marks (?), en dashes (-), a single or consecutive quotation marks (").

This object cannot be configured with /destination/interface/interface or remark-dot1p in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/redirect/destination/next-hop/next-hop/nexthop-extend/track-nqa/test-name

Indicates the name of an NQA test instance.

The value is a string of 1 to 32 case-sensitive characters, excluding question marks (?), en dashes (-), a single or consecutive quotation marks (").

This object cannot be configured with /destination/interface/interface or remark-dot1p in a traffic behavior simultaneously.

/huawei-mqc:mqc/traffic-behaviour/mirror

Indicates the index of an observing interface.

The value is an integer. The value range is as follows:
  • S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI: The value is 1.

  • S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S: The value is an integer in the range from 1 to 8.

N/A

/huawei-mqc:mqc/traffic-behaviour/enable-statistics

Indicates whether the traffic statistics function is enabled.

Boolean value:

  • true: The traffic statistics function is enabled.

  • false: The traffic statistics function is disabled.

The default value is false.

N/A

/huawei-mqc:mqc/traffic-policy/name

Indicates the name of a traffic policy.

The value is a string of 1 to 64 case-sensitive characters without spaces. When double quotation marks are used around the string, spaces are allowed in the string.

N/A

/huawei-mqc:mqc/traffic-policy/match-order

Indicates the matching order of traffic classifiers in the traffic policy.

Enumerated value. The values are as follows:

  • auto: The matching order depends on priorities of traffic classifier types. Traffic classifiers based on the following information are in descending order of priority: Layer 2 and IPv4 Layer 3 information, advanced ACL6 information, basic ACL6 information, Layer 2 information, IPv4 Layer 3 information, and user-defined ACL information.

  • configuration: The matching order depends on the priorities of traffic classifiers.

The default value is configuration.

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this object.

/huawei-mqc:mqc/traffic-policy/rule/traffic-classifier

Indicates the name of a traffic classifier.

The value must be the name of an existing traffic classifier.

N/A

/huawei-mqc:mqc/traffic-policy/rule/traffic-behaviour

Indicates the name of a traffic behavior.

The value must be the name of an existing traffic behavior.

N/A

/huawei-mqc-apply:mqc-apply/traffic-policy-apply/name

Indicates the name of a traffic policy.

The value must be the name of an existing traffic policy.

N/A

/huawei-mqc-apply:mqc-apply/traffic-policy-apply/interface/name

Indicates the interface that the traffic policy is applied to.

The value is a string and is in the format of interface-typeinterface-number.

N/A

/huawei-mqc-apply:mqc-apply/traffic-policy-apply/interface/inbound

Indicates the inbound direction of an interface to which a traffic policy is applied.

The value is a string of spaces only with no limited length.

Only one traffic policy can be applied to each direction on an interface.

/huawei-mqc-apply:mqc-apply/traffic-policy-apply/interface/outbound

Indicates the outbound direction of an interface to which a traffic policy is applied.

The value is a string of spaces only with no limited length.

Only one traffic policy can be applied to each direction on an interface.

/huawei-mqc-apply:mqc-apply/traffic-policy-apply-global/direction

Indicates the direction in which the traffic policy is applied.

The value is of the enumerated type:
  • inbound
  • outbound

N/A

/huawei-mqc-apply:mqc-apply/traffic-policy-apply-global/name

Indicates the name of a traffic policy.

The value must be the name of an existing traffic policy.

N/A

/huawei-mqc-apply:mqc-apply/traffic-policy-apply-global/slot

Indicates the slot ID to which the traffic policy is applied.

The value is 0 in a non-stack scenario and is the stack ID in a stack scenario.

N/A

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