Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VNET context default gateway is not checked if valid #132

Open
brodriguez-opennebula opened this issue Oct 31, 2024 · 0 comments · May be fixed by #133
Open

VNET context default gateway is not checked if valid #132

brodriguez-opennebula opened this issue Oct 31, 2024 · 0 comments · May be fixed by #133

Comments

@brodriguez-opennebula
Copy link
Contributor

Let's suppose that a Virtual network has the following default gateway

GATEWAY=" "

Being the Gateway a simple space an invalid network configuration is rendered

The solution has to do with comparing the gateway with the following bash style regex:

^(([1-9]?[0-9]|1[0-9][0-9]|2([0-4][0-9]|5[0-5]))\.){3}([1-9]?[0-9]|1[0-9][0-9]|2([0-4][0-9]|5
[  0-5]))$
brodriguez-opennebula added a commit that referenced this issue Nov 5, 2024
If a default gateway is an invalid IP (or a space character) it
leads to an error. Also, the `ONEGATE_ENDPOINT` regex has been
modified.
@brodriguez-opennebula brodriguez-opennebula linked a pull request Nov 6, 2024 that will close this issue
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 a pull request may close this issue.

1 participant