more validation is needed for "system host-device-label" related cli
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Teresa Ho |
Bug Description
Brief Description
-----------------
"system host-device-label" related cli needs more validation to handle error cases
Severity
--------
Minor
Steps to Reproduce
------------------
case1: add same label with different values, only the last value gets added. "system host-device-
case2: When there are label1=abc and label1=dddddddd for same device, "system host-device-
case3: add/remove label with special label/value (eg. label!1 label!a), get following output.
3.1 label!1 two labels "labelip" and "addr" added with "None" value, and prompt “system host-device-
3.2 labelx = 1 three labes "labex", "" and "1" added with "None" value
3.3 remove “label!a” prompt error with “system host-device-
case4: add/remove label with special (incorrect) PCI device (eg. 0000;b2:00.0 0000!b2:00.0), prompt “-sh: !b2: event not found”
Reproducibility
---------------
permanent
System Configuration
-------
Lab-name: wp_16_17
Branch/Pull Time/Commit
-------
Designer build from 2020-06-09_20-00-00
Last Pass
---------
N/A
Test Activity
-------------
Functional Testing
stx.5.0 - minor usability issues