TWSD-1648 : some of the show commands displays "Failed to execute" even after successful execution

Review Request #1390 — Created Feb. 17, 2026 and updated

johnson_medidi
APV10
rel_apv_10_7_3
TWSD-1648
mmiriam, pradeep, tanya

In this ticket, some show commands displays "failed to execute" even after successful execution(eg:show activationserver,show qos interface port).

For certain show commands, when configuration is not present, the function returns -1.Due to this return value, the CLI prints "Failed to execute", even though it is a valid no-configuration scenario.Returning -1 is treated as execution failure by CLI.Updated the return value to 0 (success) for no-configuration cases.

vAPV#c t

vAPV(config)#show activationserver
There is no remote activation server added.
Please execute 'activationserver [ip] [port]' to add an remote activation server first!
vAPV(config)#
vAPV(config)#show qos all

vAPV(config)#show qos interface

vAPV(config)#show qos interface port2
Not found the configuration

vAPV(config)#show qos filter

vAPV(config)#

Loading...