TWSD-1166 Not able to delete the group ID associated with port via webUI

Review Request #1239 — Created Dec. 17, 2025 and submitted — Latest diff uploaded

austin
APV10
rel_apv_10_7_4
TWSD-1166
lucille, shuinvy

Fix when user try to delete Bond Interface cause cli issue.

Jira:
https://arraynetworks.atlassian.net/jira/software/projects/TWSD/boards/62?jql=assignee%20%3D%20712020%3A64a4a8f2-81d8-4b7a-9664-f9019a720f96&selectedIssue=TWSD-1166

Feature description:
The table under HA Groups > Port lists each HA Group’s member interfaces (“Member Interface”) and optionally a bonded interface (“Bond Interface”). It represents how a physical or logical interface is attached to a high-availability group so the device can sync state between peers.
Deleting a row tells the CLI to run no ha group port …, which removes that interface from the HA group; the code you edited makes sure the command only includes a bond interface name when one exists, so the CLI doesn’t reject the request (which is why you got “no ha group port 10 “” “port3””).
In other words, the web UI is deleting a specific port binding inside HA Group 10—the “Group” column is the HA group ID, “Bond Interface” is the attachment (may be empty), and “Member Interface” is the actual port you’re removing.

solve:
I fixed it by checking for a non-empty bond_interface name before adding the bond_name parameter in HAGroupPort.Manager._delete(), so the delete command now only includes the bond argument when a bond interface actually exists—ports without a bond interface get no ha group port 10 "port3" and succeed.

    Loading...