Fix SONiC PFC storm generation script on Arista devices#20764
Fix SONiC PFC storm generation script on Arista devices#20764StormLiangMS merged 1 commit intosonic-net:masterfrom
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@veronica-arista @lipxu @XuChen-MSFT can you help to review? @rick-arista @davidm-arista @r12f for viz. |
|
LGTM |
|
Also looks good to me since we do not have any testbed with Sonic fanout devices. If anyone is running fanouts with Sonic that are configured differently than the Microsoft set-up, |
It's a good point. We can handle it in another PR later if different type of config is found. |
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only.
|
Cherry-pick PR to 202505: #20830 |
This script will only be called on fanout, the new change includes:
create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on
Remove the PORT_QOS_MAP when stopping pfc storm,
For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC.
How did you verify/test it?
On local testbed.
Any platform specific information?
Arista SONiC fanout only.
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only.
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only. Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only. Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only. Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only. Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only.
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only. Signed-off-by: YiFan Wang <yifan@nexthop.ai>
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only. Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only. Signed-off-by: Lakshmi Yarramaneni <lakshmi@nexthop.ai>
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only. Signed-off-by: Yael Tzur <ytzur@nvidia.com>
…0764) This script will only be called on fanout, the new change includes: create the PORT_QOS_MAP entry before calling config interface pfc priority {intf} {prio} on Remove the PORT_QOS_MAP when stopping pfc storm, For SONiC fanout, use self._shellCmd() instead of incorrect self._cliCmd() when disabling PFC. How did you verify/test it? On local testbed. Any platform specific information? Arista SONiC fanout only.
|
Cherry-pick PR to msft-202503: Azure/sonic-mgmt.msft#1035 |
Description of PR
Summary:
Fix SONiC PFC storm generation script on Arista devices.
The PFC generation script needs to enable PFC on the fanout. However, in our fanout configuration. PORT_QOS_MAP is not configured by default. So the following code will return an error, and won't do anything.
Type of change
Back port request
Approach
What is the motivation for this PR?
Fix the script error for Arista SONiC fanout.
How did you do it?
This script will only be called on fanout, the new change includes:
config interface pfc priority {intf} {prio} onHow did you verify/test it?
On local testbed.
Any platform specific information?
Arista SONiC fanout only.
Supported testbed topology if it's a new test case?
Documentation