You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config pfcwd start --action drop ports all deteection-time 200 --restoration-time 200 ; echo AUTO_REMOTE_STATUS=$?
Observed behavior
root@r-qa-sw-eth-114:/home/admin# [sonic_dump_r-qa-sw-eth-2132_20210531_113146.tar.gz](https://github.com/Azure/sonic-buildimage/files/6569960/sonic_dump_r-qa-sw-eth-2132_20210531_113146.tar.gz)
Failed to run command, invalid options:
deteection-time
AUTO_REMOTE_STATUS=0
Expected behavior
root@r-qa-sw-eth-114:/home/admin# config pfcwd start --action drop ports all deteection-time 200 --restoration-time 200 ; echo AUTO_REMOTE_STATUS=$?
Failed to run command, invalid options:
deteection-time
AUTO_REMOTE_STATUS=1
Output of show version
SONiC Software Version: SONiC.202012.81-2fc748e_Internal
Distribution: Debian 10.9
Kernel: 4.19.0-12-2-amd64
Build commit: 2fc748ea
Build date: Thu May 6 20:42:29 UTC 2021
Built by: sw-r2d2-bot@r-build-sonic-ci02
Platform: x86_64-mlnx_msn3800-r0
HwSKU: ACS-MSN3800
ASIC: mellanox
ASIC Count: 1
Serial Number: MT1925X00004
Signed-off-by: Neetha John <[email protected]>
Fixes#1690
What I did
Set the correct return code when pfcwd command is specified with invalid options
How to verify it
Modified the unit test to check for the correct return code and ran them and they passed
Signed-off-by: Neetha John <[email protected]>
Fixessonic-net#1690
What I did
Set the correct return code when pfcwd command is specified with invalid options
How to verify it
Modified the unit test to check for the correct return code and ran them and they passed
Description
The incorrect cli PFCWD command doesn't return failed exit code 1
Steps to reproduce
Observed behavior
Expected behavior
Output of show version
sonic_dump_r-qa-sw-eth-2132_20210531_113146.tar.gz
The text was updated successfully, but these errors were encountered: