Skip to content

Add parsing support for MAC addresses on an address range #7233

@brodriguez-opennebula

Description

@brodriguez-opennebula

Description
MAC addresses are not correctly checked when adding a virtual network address range with a defined MAC range

To Reproduce

Executing a command like the following

onevnet addar ${VNET_ID} -m 2001:db8:1:1::1 -s 100

Would result in the creation of an address range like the following

AR 1                                                                            
SIZE           : 100                 
LEASES         : 0                   

RANGE                                   FIRST                               LAST
MAC                           2001:db8:1:1::1                  0e:b8:01:01:01:64

Expected behavior
There should be an error when not adding a valid MAC address

Details

  • Affected Component: core
  • Version: All versions tested

Additional context
It may be good that the 00:00:00:00:00:00 and the FF:FF:FF:FF:FF:FF MAC addresses should be checked, as well (mainly FF:FF:FF:FF:FF:FF )

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions