]> xenbits.xensource.com Git - libvirt.git/commit
vz: fix updating to no gateways
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Wed, 20 Apr 2016 14:05:38 +0000 (17:05 +0300)
committerMaxim Nestratov <mnestratov@virtuozzo.com>
Sat, 25 Jun 2016 19:56:03 +0000 (22:56 +0300)
commit62b0066de49a2fd3afb442c7e7aadf9997c4ec37
tree51b68665712154063984928609b944988ddb0b35
parentc34a9d6e5637d98a2d99c2147ecf9ec82bf5fd27
vz: fix updating to no gateways

Current code that pass gateways to vz sdk is not suitable for
updates. If update has no gateways while we had them before
we need to pass "" for vz sdk gateways to reset old value.

The code definitely deserves its own function.

Drop checks that skip setting gateways if network address
is not set. Such a configuration is possible in vz sdk.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
src/vz/vz_sdk.c