Use new util function for mac_prefix validation
authorDimitris Aragiorgis <dimara@grnet.gr>
Wed, 5 Dec 2012 14:08:10 +0000 (16:08 +0200)
committerMichael Hanselmann <hansmi@google.com>
Wed, 5 Dec 2012 15:04:38 +0000 (16:04 +0100)
commitca519248ff6285da678228c3af6f671f1a560d0e
treebe205d166ecd69a8c180c6ab9c42f3abbc2f642c
parent26e88cde9041a3c202fbcc130ab6d6bcc7b79dc3
Use new util function for mac_prefix validation

Use new NormalizeAndValidateThreeOctetMacPrefix() util function in
LUNetworkAdd/LUNetworkSetParams to validate network's MAC prefix.
Additionally, move the check in CheckArguments() in the case of
LUNetworkAdd.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/cmdlib.py