Skip to content
Snippets Groups Projects
Commit 24ea7a54 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis
Browse files

Use network's mac prefix


Modify existing GenerateMAC so that it takes network as an argument.

Substitute _GenerateOneMAC with a decorator _GenerateMACPrefix
that chooses the prefix (network's or cluster's) and wraps
_GenerateMACSuffix that generates the three remaining bytes.

Check mac prefix validity when adding/modifing a network.

Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent c2c9ce98
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment