mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
libxl: write vifname in xenstore if set.
Simple fix to enable user to specify vif names. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
This commit is contained in:
1 parent
02e9a7dcb5
commit
a5e66ebdeb
1 file changed
+6
@@ -1534,6 +1534,12 @@ int libxl_device_nic_add(libxl_ctx *ctx, uint32_t domid, libxl_device_nic *nic)
|
||||
libxl_xen_script_dir_path(),
|
||||
nic->script));
|
||||
}
|
||||
|
||||
if (nic->ifname) {
|
||||
flexarray_append(back, "vifname");
|
||||
flexarray_append(back, nic->ifname);
|
||||
}
|
||||
|
||||
flexarray_append(back, "mac");
|
||||
flexarray_append(back,libxl__sprintf(gc,
|
||||
LIBXL_MAC_FMT, LIBXL_MAC_BYTES(nic->mac)));
|
||||
|
||||