Skip to content

Conversation

TuxPowered42
Copy link
Contributor

No description provided.

@TuxPowered42 TuxPowered42 requested review from lamaral and kofrezo March 10, 2025 09:27
@TuxPowered42 TuxPowered42 force-pushed the k_fix_is_unique_ip_logic branch 2 times, most recently from bd3e188 to c9fb976 Compare March 10, 2025 10:26
Copy link
Contributor

@lamaral lamaral left a comment

Choose a reason for hiding this comment

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

The logic change LGTM.
The formatting I'll leave up to Daniel.

@TuxPowered42 TuxPowered42 force-pushed the k_fix_is_unique_ip_logic branch from c297982 to 05ed0e3 Compare March 10, 2025 12:38
@TuxPowered42 TuxPowered42 force-pushed the k_fix_is_unique_ip_logic branch 4 times, most recently from 09a43f5 to 6ba4032 Compare March 10, 2025 13:08
@TuxPowered42 TuxPowered42 force-pushed the k_fix_is_unique_ip_logic branch 2 times, most recently from a077946 to dcdd702 Compare March 10, 2025 15:38
We allow Servers to have various inet attribute types which configure
behaviour of checking for IP address conflics. Type "loadbalancer" does
not have an uniqueness check, type "network" only checks within the same
servertype.

Ensure that the uniqueness of IP address is checked symmetrically:
"host" inet attribute type must not ensure its uniqueness against
"network" and "loadbalancer", because they don't check against "host".

For example it was possible to create a domain object for IP address of
a VM, but it was impossible to create a VM once a domain existed.

Improve the message shown to user in case of conflict.
@TuxPowered42 TuxPowered42 force-pushed the k_fix_is_unique_ip_logic branch from dcdd702 to 6ea732e Compare March 10, 2025 15:55
@kofrezo kofrezo merged commit 2673d85 into main Mar 10, 2025
5 checks passed
@kofrezo kofrezo deleted the k_fix_is_unique_ip_logic branch March 10, 2025 16:02
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.

3 participants