The undo rule time-range command deletes specifies a time range during which an ACL6 rule takes effect.
By default, no time range is configured.
Usage Scenario
To delete specifies a time range during which an ACL6 rule takes effect, run this command.
Prerequisites
An interface-based ACL has been created using the acl command in the system view.
A time range has been configured using the time-range command in the system view if you want to specify a validity period when creating an interface-based ACL rule.Configuration Impact
When specifying an ACL6 rule ID, note the following:
Precautions
If auto is configured when you run the acl command to create an ACL, you cannot specify a rule ID when creating a rule. The system automatically uses the ACL increment as the start rule ID, and the subsequent rules are numbered by an ACL increment in ascending order.
If rule-id is not specified when you run the rule command to create an ACL, the system automatically assigns an ID to the ACL rule. You can run the display acl command to check the rule ID automatically assigned to an ACL. If name rule-name is not specified when you run the rule command to create an ACL, the system automatically generates a name for the ACL in the format of "rule"+"_"+rule ID. Rule ID is the ID of an ACL rule that can be specified using the rule-id parameter or automatically assigned by the system. You can check the automatically generated name of an ACL rule through the NMS. You must specify the rule ID when deleting a rule. To check rule IDs, run the display acl command. Before deleting an ACL rule, run the display acl command to check whether the ACL rule has been applied to other services. Delete the rule only when it is not applied to other services.<HUAWEI> system-view [~HUAWEI] time-range aa [~HUAWEI] acl number 1999 [*HUAWEI-acl4-interface-1999] rule 1 deny interface GigabitEthernet0/1/0 time-range aa [*HUAWEI-acl-if-1999] commit [~HUAWEI-acl-if-1999] undo rule 1 time-range