Copying and overwriting port scheduler policies

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

 config>qos> copy port-scheduler-policy src-name dst-name [overwrite]
Example
 config>qos# copy port-scheduler-policy psp psp1
*A:card-1>config# qos port-scheduler-policy psp create
*A:card-1>config>qos>port-sched-plcy# mode WRR
*A:card-1>config>qos>port-sched-plcy# queue 1 weight 1
*A:card-1>config>qos>port-sched-plcy# queue 2 weight 3
*A:card-1>config>qos>port-sched-plcy# queue 3 weight 5
*A:card-1>config>qos>port-sched-plcy# exit
*A:card-1>config# qos copy port-scheduler-policy psp psp1
*A:card-1>config# qos copy port-scheduler-policy psp psp1
MINOR: CLI Destination "psp1" exists - use {overwrite}.
*A:card-1>config# qos copy port-scheduler-policy psp psp1 overwrite
*A:card-1>config# show qos port-scheduler-policy
===============================================================
Port Scheduler Policies
===============================================================
Policy-Id     Description                           Mode
-------------------------------------------------------------------------------
default       Default Port Scheduler policy.        STRICT
psp                                                 WRR
psp1                                                WRR
===============================================================
*A:card-1>config# 

*A:card-1>config# show qos port-scheduler-policy psp
===============================================================
QoS Port Scheduler Policy
===============================================================
Policy-Name : psp
Accounting: packet-based
Mode : WRR
Last changed : 01/01/2000 22:13:01
Queue 1 Weight: 1
Queue 2 Weight: 3
Queue 3 Weight: 5
Queue 4 Weight: strict
Queue 5 Weight: strict
Queue 6 Weight: strict
Queue 7 Weight: strict
Queue 8 Weight: strict
===============================================================
*A:card-1>config# 
*A:card-1>config# show qos port-scheduler-policy psp1
===============================================================
QoS Port Scheduler Policy
===============================================================
Policy-Name : psp1
Accounting: packet-based
Mode : WRR
Last changed : 01/01/2000 22:13:17
Queue 1 Weight: 1
Queue 2 Weight: 3
Queue 3 Weight: 5
Queue 4 Weight: strict
Queue 5 Weight: strict
Queue 6 Weight: strict
Queue 7 Weight: strict
Queue 8 Weight: strict
===============================================================================
*A:card-1>config#