commit | bc2afdd0b2db95c6705c05b03a028cc35aae628e | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Mon Sep 19 16:56:06 2011 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Mon Sep 19 16:56:06 2011 +0400 |
tree | f7b471901fe3e78ff15eb1f1504da7c5ef96a60b | |
parent | 871517feb60b73fcc97a4d6ffa24f399b81d8259 [diff] |
vzctl set --ipdel all: do not run *add_ip.sh script When "vzctl set $CTID --ipdel all" is executed, vzctl runs *del_ip.sh script and then *add_ip.sh script. There is no need to run the second one if list of IPs to add is empty. This should prevent (re)creating empty configuration for venet0 inside a container. While at it, document the complicated "if" statement, so now it becomes more-or-less comprehensive. Signed-off-by: Kir Kolyshkin <kir@openvz.org>