(2.10) Export NIC's UUID and name to network scripts
authorDimitris Aragiorgis <dimara@grnet.gr>
Fri, 22 Nov 2013 19:59:45 +0000 (21:59 +0200)
committerDimitris Aragiorgis <dimara@grnet.gr>
Tue, 17 Dec 2013 10:46:46 +0000 (12:46 +0200)
commit6ba0093cd6a85132427b3cc0a0d4bcdedfa541f0
treeedac4fa599854dda7aa30f29f1f783953145b6dd
parent45ba54c4ab800ab360632145eeb331d977f6ce9d
(2.10) Export NIC's UUID and name to network scripts

In case of kvm None values are not allowed in env dict
so we have to add name only if not None.

In case of Xen since we are writing on a file that
is going to be sourced we should not add INTERFACE_NAME=None.

Fix IP=None case.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
lib/hypervisor/hv_kvm.py
lib/hypervisor/hv_xen.py