The device can be overridden in the Vagrantfile. Checking the default route
isn't a bad idea. I can look into that.

On Tuesday, September 10, 2013, Dmitry Vasilets wrote:

> In lib/vagrant-libvirt/action/create_network_interfaces.rb:
>
> > @@ -77,13 +65,22 @@ def call(env)
> >            adapters.each_with_index do |iface_configuration, slot_number|
> >              @iface_number = slot_number
> >              @network_name = iface_configuration[:network_name]
> > +            template_name = 'interface'
> > +
> > +            # Configuration for public interfaces which use the macvtap driver
> > +            if iface_configuration[:iface_type] == :public_network
> > +              template_name = 'public_interface'
> > +              @device = iface_configuration.fetch(:dev, 'eth0')
>
> i have two interfaces wlp8s0 for wifi and em1 for wired
> may be require check default route or set interface as argument ?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pradels/vagrant-libvirt/pull/53/files#r6286835>
> .
>