[PATCH master] Add tests for network --device missing and --device=link

Brian C. Lane bcl at redhat.com
Thu Jun 4 18:27:01 UTC 2015


On Thu, Jun 04, 2015 at 12:47:50PM +0200, Radek Vykydal wrote:
> 
> On 06/03/2015 08:39 PM, Chris Lumens wrote:
> >>These are only for one one NIC available.
> >If you need the ability to set up more than one NIC, we should be able
> >to allow that by passing additional --network= options to virt-install.
> >It shouldn't be much work to set that up - probably pretty similar to
> >the disk stuff.  It just hasn't been needed yet, so I haven't done
> >anything for it.
> 
> What I'd like to have to create some more tests is
> 
> - Option to require more network devices. I looked at virt-install briefly,
> and I wasn't able to see if/how it is possible via virt-install, I can see
> only qemu config of my VMs, but can it be set by virt-install or by xml
> config only... I don't know.

You can just pass it more --network lines:

--network network=default,model=e1000

> 
> - Possibility to refer to devices in the test
>   - it can be either by MAC which should be configurable by mac option?

Yes, you can add mac= to the network line:

--network network=default,model=e1000,mac=52:54:00:42:42:44

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list