In this patch I'm simply deleting the old network interface before recreating it when a persistent interface name was used. I think this makes sense since mac addresses are reconfigured, and the peer would otherwise already sit in the other namespace making this otherwise a more difficult task AFAIK.
In order to know when to do this I moved the palce where conf->reboot is reset toa fter lxc_spawn. A quick grep through the source showed that this should be fine, though if another solution is desired I'm willing to work on this a bit more. On an unrelated note: I've noticed that sometimes pull requests from github don't seem to make it to the devel list. With my first PR I thought it was due to the missing email address association on github (and I saw it appear on the list after fixing this and commenting about it within the PR), but my current one about seccomp didn't show up in my mailbox either. Is this intended? Wolfgang Bumiller (1): pass on reboot flag and delete old veth on reboot src/lxc/conf.c | 6 ++++-- src/lxc/lxccontainer.c | 3 +-- src/lxc/start.c | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) -- 2.1.4 _______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel