Skip to content

VNET context default gateway is not checked if valid #132

@brodriguez-opennebula

Description

@brodriguez-opennebula

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]))$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions