On Wed, Feb 18, 2015 at 12:27 AM, Serge Hallyn <serge.hal...@ubuntu.com> wrote:
> Quoting Fajar A. Nugraha (l...@fajar.net):
>> # c1's veth name on host side
>> auto v-c1-0
>> iface v-c1-0 inet static
>
> I'm probably just ignorant here, but - does this not cause 'ifup -a' to
> fail when the containers are not up?

ifup throws an error message, but still exit with code 0, so it should
be safe. udev and network-interface service will kick in to
automatically activate it when the interface becomes available (i.e.
when the container is started)

# ifup -a;echo $?
Cannot find device "v-c1-0"
Failed to bring up v-c1-0.
0

# ifup v-c1-0;echo $?
Cannot find device "v-c1-0"
Failed to bring up v-c1-0.
0

-- 
Fajar
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to