
Configuring QoS
Creating Policies
OmniSwitch AOS Release 7 Network Configuration Guide
June 2013
page 25-43
Creating Policies
This section describes how to create policies in general. For information about configuring specific types
of policies, see
“Policy Applications” on page 25-74
Basic commands for creating policies are as follows:
policy condition
policy action
policy rule
This section describes generally how to use these commands. For additional details about command
syntax, see the
OmniSwitch CLI Reference Guide
.
Note.
A policy rule can include a policy condition or a policy action that was created through PolicyView
rather than the CLI. But a policy rule, policy action, or policy condition can only be modified through the
source that created it. For example, if an action was created in PolicyView, it can be included in a policy
rule configured through the CLI, but it cannot be modified through the CLI.
Policies are not used to classify traffic until the
qos apply
Quick Steps for Creating Policies
Follow the steps below for a quick tutorial on creating policies. More information about how to configure
each command is given in later sections of this chapter.
1
Create a policy condition with the
policy condition
command. For example:
-> policy condition cond3 source ip 10.10.2.3
2
Create a policy action with the
policy action
command. For example:
-> policy action action2 priority 7
3
Create a policy rule with the
policy rule
command. For example:
-> policy rule my_rule condition cond3 action action2
4
Use the
qos apply
command to apply the policy to the configuration. For example:
-> qos apply
Note.
(
Optional
) To verify that the rule has been configured, use the
show policy rule
command. The
display is similar to the following:
-> show policy rule
Rule name : my_rule
Condition name = cond3,
Action name = action2,