Prevent race condition on MAC addresses
authorIustin Pop <iustin@google.com>
Thu, 12 Feb 2009 17:04:19 +0000 (17:04 +0000)
committerIustin Pop <iustin@google.com>
Thu, 12 Feb 2009 17:04:19 +0000 (17:04 +0000)
commite7d81ba0ce094edc12fb472a7ab95cabe9d1c32c
tree75761b2d46cdcd7f619313c42188ebf9dae70de4
parent633b36dbc123e45b3b83a6a7f34436021e2992f1
Prevent race condition on MAC addresses

This patch adds a temporary set for MACs that have been requested but
are not yet in the configuration (as part of an instance NIC). The MACs
of an instance are automatically removed from this set when the instance
is updated (or first added to the config).

Reviewed-by: ultrotter
lib/config.py