mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
libxl: Fix connection to modular network daemon
In a modular daemon configuration, virtxend does not support the virNetwork* APIs. It should open a connection to virtnetworkd when using those APIs, but currently always opens a connection to "xen:///system". Switch to using virGetConnectNetwork to obtain a valid connection instead of using the hardcoded URI. Signed-off-by: Jim Fehlig <jfehlig@suse.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
1 parent
2ca94317ac
commit
57d084febe
1 file changed
+1
-1
@@ -1372,7 +1372,7 @@ libxlMakeNic(virDomainDef *def,
|
||||
break;
|
||||
case VIR_DOMAIN_NET_TYPE_NETWORK:
|
||||
{
|
||||
if (!(conn = virConnectOpen("xen:///system")))
|
||||
if (!(conn = virGetConnectNetwork()))
|
||||
goto cleanup;
|
||||
|
||||
if (!(network =
|
||||
|
||||
Reference in new issue
Block a user