Add check for duplicate MACs in instance add
authorIustin Pop <iustin@google.com>
Tue, 8 Sep 2009 12:29:26 +0000 (14:29 +0200)
committerIustin Pop <iustin@google.com>
Tue, 8 Sep 2009 15:22:34 +0000 (17:22 +0200)
commit87e439883e8d2542596e71ec7d2fa5faafbc3dd2
tree3a356f3e8dd4e7aa0ae06a35867fda044d273d4e
parent862b1b2b4c698cec8ad816793172fac9aa7f4cdf
Add check for duplicate MACs in instance add

Currently LUAddInstance doesn't check for duplicate MACs, and it fails
during the Exec() phase when trying to add the instance to the config
(ConfigWriter checks for this). This patch copies the code from
LUModifyInstance (which already does it).

This fixed issue #70.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Olivier Tharan <olive@google.com>
lib/cmdlib.py