Skip to content

Disabled assigned ip box for multiple ips#1713

Merged
sarika-pf9 merged 1 commit intomainfrom
private/main/sarika/disble-toggle-for-multiple-ip
Mar 18, 2026
Merged

Disabled assigned ip box for multiple ips#1713
sarika-pf9 merged 1 commit intomainfrom
private/main/sarika/disble-toggle-for-multiple-ip

Conversation

@sarika-pf9
Copy link
Collaborator

What this PR does / why we need it

disabled assigned ip box for multiple ips

Which issue(s) this PR fixes

fixes #

Testing done

image

@sarika-pf9 sarika-pf9 requested a review from geet-pf9 March 18, 2026 06:46
Copy link
Contributor

@geet-pf9 geet-pf9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sarika-pf9 sarika-pf9 enabled auto-merge (squash) March 18, 2026 06:47
Copy link
Contributor

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 To request another review, post a new comment with "/windsurf-review".

Comment on lines +1114 to +1119
if (parseIpList(value).length > 1) {
setBulkPreserveIp((prev) => ({
...prev,
[vmName]: { ...prev[vmName], [interfaceIndex]: true }
}))
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In handleBulkIpChange, when multiple IPs are detected, the code forces preserveIp to true, but there's no check to prevent the user from later trying to disable it through other means. Consider adding a similar check in other functions that might modify the preserveIp state.

@sarika-pf9 sarika-pf9 force-pushed the private/main/sarika/disble-toggle-for-multiple-ip branch from f92e139 to 35f779d Compare March 18, 2026 06:47
@sarika-pf9 sarika-pf9 merged commit 2160c2a into main Mar 18, 2026
12 checks passed
@sarika-pf9 sarika-pf9 deleted the private/main/sarika/disble-toggle-for-multiple-ip branch March 18, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants