Skip to content

CLI: Reject setup in case uplink network's gateway isn't set - #850

Merged
roosterfish merged 4 commits into
canonical:mainfrom
roosterfish:reject_empty_uplink_addr
Jul 4, 2025
Merged

CLI: Reject setup in case uplink network's gateway isn't set#850
roosterfish merged 4 commits into
canonical:mainfrom
roosterfish:reject_empty_uplink_addr

Conversation

@roosterfish

Copy link
Copy Markdown
Contributor

Not configuring the gateway on the uplink configures an OVN network without external connectivity.
Whilst that might be a valid use case, currently this is not really supported in LXD as you have to provide an uplink network even though it's not used.

Until this is supported in LXD, we simply don't allow this type of configuration.

Furthermore the asker's error message printer is modified to allow passing underlying errors to the user for better understanding why an input might be invalid.

Not configuring the gateway on the uplink configures an OVN network without external connectivity.
Whilst that might be a valid use case, currently this is not really supported in LXD as you have to provide
an uplink network even though it's not used.

Until this is supported in LXD, we simply don't allow this type of configuration.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
@roosterfish
roosterfish force-pushed the reject_empty_uplink_addr branch 2 times, most recently from 98f9035 to 05d0c63 Compare July 4, 2025 08:55
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
In case the asker is using a validator, make sure it's error message can be displayed to the user.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
@roosterfish
roosterfish force-pushed the reject_empty_uplink_addr branch from 05d0c63 to b915432 Compare July 4, 2025 09:33
@roosterfish roosterfish added Bug Confirmed to be a bug Jira Allows the synchronization of a GitHub issue in Jira and removed Bug Confirmed to be a bug Jira Allows the synchronization of a GitHub issue in Jira labels Jul 4, 2025
@roosterfish
roosterfish merged commit 930c4f2 into canonical:main Jul 4, 2025
27 checks passed
@roosterfish
roosterfish deleted the reject_empty_uplink_addr branch July 4, 2025 12:06
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