(Optional) Configuring the Switch to Use the Resource Saving Mode When a Traffic Policy Is Applied
Context
When the MQC-enabled switch generates an alarm about a failure to apply a traffic policy due to insufficient ACL resources, configure the switch to use the resource saving mode. The switch then re-allocates ACL resources required by all traffic policies so that another traffic policy can be applied successfully.
Procedure
- Run system-view
The system view is displayed.
- Run traffic-policy resource-saving-mode
The switch is enabled to use the resource saving mode when a traffic policy is applied.
By default, the switch is disabled from using the resource saving mode when a traffic policy is applied.
- The resource saving mode is valid only for the traffic policies that are applied in the inbound direction (excluding ACL-based simplified traffic policies).
- When this command is used, all traffic policies are automatically delivered again. This may cause short service interruption.
- When this command is used and a traffic policy is applied to the device or the traffic classifier, traffic behavior, or ACL rule in an applied traffic policy changes, all traffic policies are automatically delivered again. This may cause short service interruption.
- In the scenario where the device is configured to use the resource saving mode when a traffic policy is applied, for ED, EF, and EG series cards that support extended TCAM, the system automatically releases ACL resources that are occupied by all traffic policies (excluding ACL-based simplified traffic policies) delivered to the extended TCAM. Then the system delivers the traffic policy to the built-in TCAM. However, the traffic policy may fail to be delivered due to insufficient built-in TCAM resources.
- If the interface assignment mode is set to the port mode in the VS management view (excluding the Admin-VS), this command is not supported.
- You can run this command to attempt to apply traffic policies. However, if ACL resources on the device are far from sufficient, some traffic policies may fail to be applied even after this command is run. In this case, the alarm indicating that traffic policies fail to be applied due to insufficient ACL resources persists.
- Run commit
The configuration is committed.