Skip to content

bringup_static_routes: fix gateway check#850

Merged
TheRealFalcon merged 2 commits into
canonical:masterfrom
giggsoff:bringup_static_routes_fix
Apr 7, 2021
Merged

bringup_static_routes: fix gateway check#850
TheRealFalcon merged 2 commits into
canonical:masterfrom
giggsoff:bringup_static_routes_fix

Conversation

@giggsoff
Copy link
Copy Markdown
Contributor

@giggsoff giggsoff commented Mar 22, 2021

Proposed Commit Message

Inside gateway field we has ip address not in CIDR notation. We must check it because of different ip route behavior for gatewayed and direct routes.

Test Steps

Try to run cloud-init with classless-static-routes with direct-connection of networks give me errors lf-edge/eve#1982 (comment).

Checklist:

  • My code follows the process laid out in the documentation
  • I have updated or added any unit tests accordingly
  • I have updated or added any documentation accordingly

@giggsoff giggsoff force-pushed the bringup_static_routes_fix branch 2 times, most recently from 94157f8 to 3aab8e4 Compare March 23, 2021 07:41
@giggsoff
Copy link
Copy Markdown
Contributor Author

I sigend the CLA, but cannot pass CI

@giggsoff giggsoff force-pushed the bringup_static_routes_fix branch from 3aab8e4 to c63cfd5 Compare March 26, 2021 20:49
giggsoff and others added 2 commits April 7, 2021 10:51
Inside gateway field we has ip address not in CIDR notation.
We must check it because of different ip route behavior for gatewayed and direct routes.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
@TheRealFalcon TheRealFalcon force-pushed the bringup_static_routes_fix branch from c63cfd5 to c44a198 Compare April 7, 2021 15:52
Copy link
Copy Markdown
Contributor

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

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

Thanks for this fix!

I added an additional test so that it's more explicit what an unspecified gateway should be. Once CI passes we;ll get it merged.

@TheRealFalcon TheRealFalcon merged commit 15dd360 into canonical:master Apr 7, 2021
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