Copying and Overwriting QoS Policies

You can copy an existing slope policy, rename it with a new policy ID value, or overwrite an existing policy ID. The overwrite option must be specified or an error occurs if the destination policy ID exists.

Use the following syntax to overwrite an existing QoS slope policy.

CLI Syntax:
config>qos> copy slope-policy source-policy-name dest-policy-name [overwrite]
Example:
*A:ALU-1>config>qos# copy slope-policy SlopePolicy1 SlopePolicy2 overwrite
config>qos# exit
*A:ALU-2#

The following output displays the copied policies:

*A:ALU-2>config>qos# info detail
#--------------------------------------------------
echo "QoS Policy Configuration"
#--------------------------------------------------
...
        slope-policy "default" create
            description "Default slope policy."
            high-slope
                shutdown
                start-avg 70
                max-avg 90
                max-prob 80
            exit
            low-slope
                shutdown
                start-avg 50
                max-avg 75
                max-prob 80
            exit
        exit
        slope-policy "SlopePolicy2" create
            description "Test2"
            high-slope
                shutdown
                max-avg 100
                start-avg 100
                max-prob 75
            exit
            low-slope
                shutdown
                start-avg 75
                max-avg 75
                max-prob 40
            exit
        exit
        slope-policy "SlopePolicy1" create
            description "Test1"
            high-slope
                shutdown
                start-avg 90
                max-avg 60
                max-prob 90
            exit
            low-slope
                shutdown
                start-avg 75
                max-avg 75
                max-prob 40
            exit
        exit
        slope-policy "SlopePolicy2" create
            description "Test1"
            high-slope
                shutdown
                start-avg 90
                max-avg 60
                max-prob 90
            exit
            low-slope
                shutdown
                start-avg 75
                max-avg 75
                max-prob 40
            exit
        exit
 ...