Modifying classes in a policy, Modifying classes in a policy -28 – HP 5400ZL User Manual
Page 430
Classifier-Based Software Configuration
Creating a Service Policy
■
To configure a mirroring policy, use the
policy mirror command as
described in the Monitoring and Analyzing Switch Operation appendix
in the Management and Configuration Guide.
Modifying Classes in a Policy
You can modify the classes and class-action statements in a policy configura
tion without removing them from the policy:
■
To modify the match/ignore statements in a class, enter the class-config
uration context with the
class
make the necessary changes by removing, resequencing, or replacing
existing statements. (To display a class configuration, enter the
show class
< ipv4 | ipv6 > < classname > command as shown in Figure 9-7.)
When you exit class configuration context, the changes are automatically
saved and applied to existing policy configurations on the switch that use
the class if the policies have not been applied to an interface. If a policy
has already been applied to an interface, the editing changes are not
accepted and an error message is displayed.
■
To modify the class-action statements in a policy, enter the policy-config
uration context with the
policy <feature-name > <policy-name > command.
(To display a policy configuration, enter the
show policy < feature-name >
< classname > command as shown in Figure 9-9.) Then do one of the
following:
•
You can enter a new class-action statement. If you do not enter a
sequence number, the new class-action statement is inserted at the
end of the policy configuration.
•
To remove a class-action statement from a policy configuration, enter
the
no <sequence-number > command or the complete form of the no
class ... action command.
•
To resequence the order in which class-action statements are listed,
enter the
resequence command (see “Resequencing Classes in a Pol
•
To replace an existing class-action statement, enter the
no <sequence
number > command to delete the entry, and re-enter a complete class
< ipv4 | ipv6 > < classname > action < action-name > or default-class action
< action-name > command.
When you exit the policy-configuration context, the changes are automat
ically saved and applied to the policy configuration if the policy has not
been applied to an interface
. If the policy has already been applied to an
interface, the editing changes are not accepted and an error message is
displayed.
9-28