Skip to content
Snippets Groups Projects
  • Dimitris Aragiorgis's avatar
    Use network's mac prefix · 24ea7a54
    Dimitris Aragiorgis authored
    
    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>
    24ea7a54