]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virDomainActualNetDefContentsFormat: Format class_id more frequently
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 14 Apr 2015 15:59:18 +0000 (17:59 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 17 Apr 2015 08:04:57 +0000 (10:04 +0200)
commitb68a56bcfe48c3b6c3dd456ab5be93ac8584a681
tree4ef8e9836bf57e62ea2fce7c11f425bfd32136b1
parent77d92e2e77f0dae8fc9e1eb5fa0db9fc9f2818bd
virDomainActualNetDefContentsFormat: Format class_id more frequently

After a360912179 the formatting of virDomainActualNetDefPtr was
changed a bit. However, during the function rewrite, iface's class_id
is not formatted as frequently as it could be. In fact, after rewrite
it's formatted only for iface of type VIR_DOMAIN_NET_TYPE_DIRECT where
it makes no sense and is unused. While where needed (_TYPE_NETWORK) is
not formatted at all. This makes the daemon forget it upon daemon
restart resulting in bad behaviour.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c