From: Wei Liu <wei.liu2@citrix.com>
To: xen-devel@lists.xensource.com
Cc: andy@strugglers.net, florian.heigl@gmail.com, wei.liu2@citrix.com
Subject: [PATCH 2/2] libxl: write vifname in xenstore if set.
Date: Thu, 29 Dec 2011 11:14:36 +0000 [thread overview]
Message-ID: <1325157276-4847-3-git-send-email-wei.liu2@citrix.com> (raw)
In-Reply-To: <1325157276-4847-1-git-send-email-wei.liu2@citrix.com>
Simple fix to enable user to specify vif names.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
tools/libxl/libxl.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
index 2b8f8f4..3c086d5 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -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)));
--
1.7.2.5
next prev parent reply other threads:[~2011-12-29 11:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-29 11:14 libxl: simple fix to enable user to configure vif names Wei Liu
2011-12-29 11:14 ` [PATCH 1/2] libxl: print out vifname in create dryrun Wei Liu
2012-01-03 10:16 ` Ian Campbell
2011-12-29 11:14 ` Wei Liu [this message]
2012-01-03 10:16 ` [PATCH 2/2] libxl: write vifname in xenstore if set Ian Campbell
2012-01-03 10:39 ` Wei Liu
2012-01-03 16:20 ` Florian Manschwetus
2012-01-05 17:14 ` Ian Jackson
2011-12-31 15:01 ` libxl: simple fix to enable user to configure vif names Florian Heigl
2012-01-01 11:56 ` Wei Liu
2012-01-04 12:42 ` Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1325157276-4847-3-git-send-email-wei.liu2@citrix.com \
--to=wei.liu2@citrix.com \
--cc=andy@strugglers.net \
--cc=florian.heigl@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).