redmine

Merge branch 'master' of https://gitlab.ut.mephi.ru/ut/ipw

Showing 1 changed file with 2 additions and 1 deletions
... ... @@ -650,7 +650,8 @@ case "$CMD" in
[[ "$CONTAINER_PID" == '' ]] &&
CONTAINER_PID=$(lxc-info -p -n "$CONTAINER" | awk '{ print $2 }')
ip link add name "$HNAME" type veth peer name ".c$GNAME"
ip link add name "$HNAME" type veth peer name ".c$GNAME" &&
lxc-attach -n "$CONTAINER" ifdown "$GNAME"
ip link set "$HNAME" up
ip link set ".c$GNAME" netns "$CONTAINER_PID"
lxc-attach -n "$CONTAINER" ip link set ".c$GNAME" name "$GNAME"
... ...