TWSD-1087 : SLB: Confirmation overlay is not seen when trying to delete the virtual service in the CLI

Review Request #1426 — Created March 9, 2026 and updated

johnson_medidi
APV10
rel_apv_10_7_3
TWSD-1087
mmiriam, pradeep, tanya

Added a confirmation prompt before executing the command 'no slb virtual http <name>'.

This prevents accidental deletion of SLB virtual servers.The system now asks the user to confirm the deletion
by entering 'yes' or 'no'.

If the user enters 'yes', the virtual server will be deleted.
If the user enters 'no', the deletion will be cancelled.

  1. Created SLB virtual servers VS_6 and VS_7.

  2. Executed:no slb virtual http "VS_6"

  3. Verified confirmation prompt appears:
    Are you sure to perform the deletion 'VS_6'? (yes/no):

  4. Entered 'no' and confirmed deletion was cancelled.

  5. Executed the command again and entered 'yes'.

  6. Verified that VS_6 was deleted successfully.

  7. Executed:show slb virtual all

  8. Confirmed only VS_7 exists.


Description From Last Updated

Please add intendation is whole code change

mmiriammmiriam

This can cause buffer overflow please add a check or use read syscall will len

mmiriammmiriam

The comparition here is case sensitive. please use strcasecmp

mmiriammmiriam

still intend in not correct

mmiriammmiriam

lets use "challange_user" for this change.

pradeeppradeep
Loading...