sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

fix config qos clear and key only update

Open vishnushetty opened this issue 4 years ago • 1 comments

What I did Fix config qos clear command.

Why I did it Queue table update without scheduler profile.

How I verified it swssloglevel -l DEBUG -c orchagent show log handleQueueTable Dec 21 17:56:57.275101 sonic DEBUG swss#orchagent: :> handleQueueTable: enter Dec 21 17:56:57.275305 sonic DEBUG swss#orchagent: :- handleQueueTable: processing port:Ethernet8 Dec 21 17:56:57.275305 sonic DEBUG swss#orchagent: :- handleQueueTable: processing range:1-1 Dec 21 17:56:57.275305 sonic DEBUG swss#orchagent: :- handleQueueTable: processing queue:1 Dec 21 17:56:57.424246 sonic DEBUG swss#orchagent: :- handleQueueTable: Applied scheduler to port:Ethernet8 queue:1 Dec 21 17:56:57.424246 sonic DEBUG swss#orchagent: :- handleQueueTable: finished Dec 21 17:56:57.424246 sonic DEBUG swss#orchagent: :< handleQueueTable: exit Dec 21 17:56:57.424246 sonic DEBUG swss#orchagent: :> handleQueueTable: enter Dec 21 17:56:57.424449 sonic DEBUG swss#orchagent: :- handleQueueTable: processing port:Ethernet8 Dec 21 17:56:57.424488 sonic DEBUG swss#orchagent: :- handleQueueTable: processing range:2-2 Dec 21 17:56:57.424609 sonic DEBUG swss#orchagent: :- handleQueueTable: processing queue:2 Dec 21 17:56:57.447642 sonic DEBUG swss#orchagent: :- handleQueueTable: Applied scheduler to port:Ethernet8 queue:2 Dec 21 17:56:57.447773 sonic DEBUG swss#orchagent: :- handleQueueTable: finished Dec 21 17:56:57.447803 sonic DEBUG swss#orchagent: :< handleQueueTable: exit Dec 21 17:57:09.835991 sonic DEBUG swss#orchagent: :> handleQueueTable: enter Dec 21 17:57:09.836647 sonic DEBUG swss#orchagent: :- handleQueueTable: processing port:Ethernet8 Dec 21 17:57:09.837054 sonic DEBUG swss#orchagent: :- handleQueueTable: processing range:1-1 Dec 21 17:57:09.837188 sonic DEBUG swss#orchagent: :- handleQueueTable: processing queue:1 Dec 21 17:57:09.862697 sonic DEBUG swss#orchagent: :- handleQueueTable: Removed scheduler to port:Ethernet8 queue:1 Dec 21 17:57:09.862697 sonic DEBUG swss#orchagent: :- handleQueueTable: finished Dec 21 17:57:09.862697 sonic DEBUG swss#orchagent: :< handleQueueTable: exit Dec 21 17:57:09.862697 sonic DEBUG swss#orchagent: :> handleQueueTable: enter Dec 21 17:57:09.862775 sonic DEBUG swss#orchagent: :- handleQueueTable: processing port:Ethernet8 Dec 21 17:57:09.862964 sonic DEBUG swss#orchagent: :- handleQueueTable: processing range:2-2 Dec 21 17:57:09.862964 sonic DEBUG swss#orchagent: :- handleQueueTable: processing queue:2 Dec 21 17:57:09.867682 sonic DEBUG swss#orchagent: :- handleQueueTable: Removed scheduler to port:Ethernet8 queue:2 Dec 21 17:57:09.867682 sonic DEBUG swss#orchagent: :- handleQueueTable: finished Dec 21 17:57:09.867682 sonic DEBUG swss#orchagent: :< handleQueueTable: exit Details if related config load qos.json config qos clear qos.json { "QUEUE": { "Ethernet8|1": { "scheduler": "[SCHEDULER|port_qos_shaper@1]" }, "Ethernet8|2": { "scheduler": "[SCHEDULER|port_qos_shaper@2]" } }, "SCHEDULER": { "port_qos_shaper@1": { "pir": "10000", "meter_type": "bytes" }, "port_qos_shaper@2": { "pir": "2500", "meter_type": "bytes" } } }

vishnushetty avatar Dec 21 '20 00:12 vishnushetty

@lguohan - pls help with review - thx

ben-gale avatar Dec 31 '20 20:12 ben-gale