Skip to content

[PFCWD] The incorrect cli command doesn't return failed exit code 1 #1690

@Hedgehog-Guru

Description

@Hedgehog-Guru

Description
The incorrect cli PFCWD command doesn't return failed exit code 1

Steps to reproduce

  1. Run the cli command:
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

sonic_dump_r-qa-sw-eth-2132_20210531_113146.tar.gz

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions