[libvirt] [PATCH 2/4] bhyve: MAC address configuration
Roman Bogorodskiy
bogorodskiy at gmail.com
Sun Mar 23 05:33:52 UTC 2014
Daniel P. Berrange wrote:
> On Thu, Mar 20, 2014 at 09:39:21AM +0100, Wojciech Macek wrote:
> > Add support for MAC address configuration no network bridge
> > interface.
s/ no / on /
> > ---
> > src/bhyve/bhyve_command.c | 6 +++++-
> > 1 file changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c
> > index 15029cd..42cab10 100644
> > --- a/src/bhyve/bhyve_command.c
> > +++ b/src/bhyve/bhyve_command.c
> > @@ -176,7 +176,11 @@ bhyveBuildNetArgStr(const virDomainDef *def, virCommandPtr cmd)
> > }
> >
> > virCommandAddArg(cmd, "-s");
> > - virCommandAddArgFormat(cmd, "1:0,virtio-net,%s", realifname);
> > + virCommandAddArgFormat(cmd, "1:0,virtio-net,%s,mac=%02x:%02x:%02x:%02x:%02x:%02x",
> > + realifname,
> > + net->mac.addr[0], net->mac.addr[1],
> > + net->mac.addr[2], net->mac.addr[3],
> > + net->mac.addr[4], net->mac.addr[5]);
> >
> > return 0;
> > }
>
> ACK
Pushed with changing MAC address formatting to use virMacAddrFormat().
Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140323/97602729/attachment-0001.sig>
More information about the libvir-list
mailing list