You specify the network it is supposed to bridge to using the `network` config option of the lxc-networking charm. It searches the interface that is on that network and bridges to that interface. I do it this way because interfaces are different from node to node in our cloud.
2015-12-02 21:54 GMT+01:00 Pshem Kowalczyk <[email protected]>: > > Is there a way to specify the interface it's going to bridge lxcbr0 to? > > kind regards > Pshem > > > > > On Thu, 3 Dec 2015 at 09:49 Merlijn Sebrechts <[email protected]> > wrote: > >> This Charm >> <https://github.com/galgalesh/tengu-charms/tree/master/charms/trusty/lxc-networking> >> is a horrible hack that creates the lxcbr0 interface on a host and bridges >> it to the given network. You can use this to crudely change networking of >> lxc containers by first deploying the charm to the host itself and then >> deploying charms to lxc containers. In the future I'll also be looking into >> changing default routes on the lxc container. Let me know if you can use >> this. I could put it in its own repository, put it in the Charm store and >> accept pull requests if there is interest for it. >> >> @Andrew: I'm using lxc containers in the manual provider and manage their >> networks using the above Charm. I'm very interested in more "official" >> support for this. >> >> 2015-12-02 8:48 GMT+01:00 Andrew McDermott < >> [email protected]>: >> >>> The short answer is not at the moment. However, we were discussing this >>> only yesterday (by chance!) and we plan to create a bridge per NIC. >>> >>> On 2 December 2015 at 00:38, Pshem Kowalczyk <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> Currently all my LXC containers are joined to juju-br0, which also >>>> contains first physical interface (in my case eth0). Is there a way to >>>> deploy those LXC with more complicated networking setup (for example >>>> bridging with eth1, or having access to multiple bridges)? If so - how can >>>> that be achieved? >>>> >>>> kind regards >>>> Pshem >>>> >>>> >>>> -- >>>> Juju mailing list >>>> [email protected] >>>> Modify settings or unsubscribe at: >>>> https://lists.ubuntu.com/mailman/listinfo/juju >>>> >>>> >>> >>> >>> -- >>> Andrew McDermott <[email protected]> >>> Juju Core Sapphire team <http://juju.ubuntu.com> >>> >>> -- >>> Juju mailing list >>> [email protected] >>> Modify settings or unsubscribe at: >>> https://lists.ubuntu.com/mailman/listinfo/juju >>> >>> >>
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
