commit | e96417c0121d2e15eedea62909fb7deaf89d8eb3 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Fri Mar 01 15:06:37 2013 -0800 |
committer | Kir Kolyshkin <kir@openvz.org> | Fri Mar 01 15:09:16 2013 -0800 |
tree | 343f4927ff31ab59e55456550e9910d41c9393ff | |
parent | 2e0a1d5295a0fdcdba019225ce5ff45f379550aa [diff] |
vzmigrate: rewrite/fix IP address check First, checking IPs one by one is not very efficient, so let's optimize, rewriting this code to check all IPs at once, by making a A|B|C regexp out of them. Second, any IPs with netmasks present would not be detected -- for this to work we need to remove netmasks from IPs if there are any. This patch does both. Signed-off-by: Kir Kolyshkin <kir@openvz.org>