[PATCH v2 12/14] libxl: pass ipaddr to libxl toolstack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do not silently ignore its value.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
---
 src/libxl/libxl_conf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index d654ace..278c5e5 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
@@ -684,6 +684,8 @@ libxlMakeNic(libxlDriverPrivatePtr driver,
         case VIR_DOMAIN_NET_TYPE_ETHERNET:
             if (VIR_STRDUP(x_nic->script, l_nic->script) < 0)
                 return -1;
+            if (VIR_STRDUP(x_nic->ip, l_nic->data.bridge.ipaddr) < 0)
+                return -1;
             break;
         default:
             virReportError(VIR_ERR_INTERNAL_ERROR,
-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]