« Previous | Next » 

Revision a0af6c80

IDa0af6c80081d3813dc15e1973512a5d9d9a1c3fe
Parent 4e4b6b7a
Child 58bf877f

Added by Dimitris Aragiorgis over 11 years ago

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: Dimitris Aragiorgis <>
Reviewed-by: Iustin Pop <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences