Re: [PATCHv3 2/2] Give each virtual network bridge its own fixed MAC address

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

 



On Fri, Feb 11, 2011 at 11:33:49AM -0700, Eric Blake wrote:
> On 02/11/2011 01:41 AM, Laine Stump wrote:
> > Changes in V3 (based on eblake's review of V2):
> > 
> > 1) fix typos in formatnetwork.html.in
> > 
> > 2) update %post script in libvirt.spec.in per eblake's suggestions
> > 
> > All other files are identical to V2
> > 
> > 
> > docs/formatnetwork.html.in: document <mac address.../>
> > docs/schemas/network.rng: add nac address to schema
> > libvirt.spec.in: %post script to update existing networks
> > src/conf/network_conf.[ch]: parse and format <mac address.../>
> > src/libvirt_private.syms: export a couple private symbols we need
> > src/network/bridge_driver.c:
> >     auto-generate mac address when needed,
> >     create dummy interface if mac address is present.
> > tests/networkxml2xmlin/isolated-network.xml
> > tests/networkxml2xmlin/routed-network.xml
> > tests/networkxml2xmlout/isolated-network.xml
> > tests/networkxml2xmlout/routed-network.xml: add mac address to some tests
> 
> > +      if test -f $dir/$file
> > +      then
> > +         sed -i.orig -e \
> > +           "s|\(<bridge.*$\)|\0\n  <mac address='52:54:00:$mac4:$mac5:$mac6'/>|" \
> > +           $dir/$file
> > +         if test $? != 0
> > +         then
> > +             echo "failed to add <mac address='52:54:00:$mac4:$mac5:$mac6'/>" \
> > +                  " to $dir/$file"
> 
> This message will have two spaces (echo has two arguments, so it
> separates them with space; and the second argument has a leading space).
>  s/" /"/
> 
> ACK with that nit fixed; however, I'm not sure if this qualifies as a
> bug fix for 0.8.8 or a feature for post-0.8.8.  DV?

I'm fine to roll this in 0.8.8, ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
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]