Skip to content

tunnels/validation: do not error out if "local" is not defined#407

Merged
daniloegea merged 2 commits intocanonical:mainfrom
daniloegea:tunnels_local
Sep 4, 2023
Merged

tunnels/validation: do not error out if "local" is not defined#407
daniloegea merged 2 commits intocanonical:mainfrom
daniloegea:tunnels_local

Conversation

@daniloegea
Copy link
Contributor

@daniloegea daniloegea commented Sep 1, 2023

The "local" IP property is not required by backends so we shouldn't error out if it's not defined.

Tracking LP bug https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2034067

Description

Checklist

  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Adds example YAML for new feature.
  • (Optional) Closes an open bug in Launchpad.

The "local" IP property is not required by backends so we shouldn't
error out if it's not defined.
Copy a few tunnels common tests and remove the local address to ensure
both backends will work fine.
@daniloegea daniloegea requested a review from slyon September 1, 2023 17:43
Copy link
Contributor

@slyon slyon left a comment

Choose a reason for hiding this comment

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

This is relaxing the validation a bit, in accordance with the backend's rules. LGTM.

Could you please create a bug report about it on Launchpad, so we can get it landed in Ubuntu post feature freeze?

@daniloegea daniloegea merged commit a7e4be0 into canonical:main Sep 4, 2023
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