Prevent multiple communication nics for one instance
authorLisa Velden <velden@google.com>
Tue, 23 Jun 2015 15:16:42 +0000 (17:16 +0200)
committerHrvoje Ribicic <riba@google.com>
Wed, 24 Jun 2015 11:38:42 +0000 (11:38 +0000)
commit16f9933568a5d7050af50fbdb51545a1e98e445a
tree09cd26c1836704a0afb2367dec96b5df73724de7
parentfcc4c0c97bd5abd8768fe382556e41087187298d
Prevent multiple communication nics for one instance

Check if a nic name is already in the list of all nics before adding it.
Expand the instance name before that check to ensure that we are always
checking for the correct name.

Signed-off-by: Lisa Velden <velden@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>
lib/cmdlib/instance.py