]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vz: assign static IPs and default gateways for network adapter
authorMikhail Feoktistov <mfeoktistov@virtuozzo.com>
Tue, 7 Jul 2015 13:38:00 +0000 (16:38 +0300)
committerDmitry Guryanov <dguryanov@parallels.com>
Tue, 7 Jul 2015 14:53:44 +0000 (17:53 +0300)
commitbeddef3967164d4feb98a6d522377803663821d4
tree9b4b1cbe1d2958cf910a7247ee51ca7920e22572
parent651426e93ec49dd0fc891ff1c511b0f7f843a143
vz: assign static IPs and default gateways for network adapter

We support only one IPv4 and one IPv6 default gateway.
If static IPs are not present in instance config,
then we switch on DHCP for this adapter.
PrlVmDevNet_SetAutoApply to makes necessary settings within guest OS
In linux case it creates network startup scripts
/etc/sysconfig/network-scripts/ifcfg-ethN and fills it with necessary
parameters.
src/vz/vz_sdk.c