summaryrefslogtreecommitdiff
path: root/src/ch
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2022-02-09 13:45:28 +0100
committerMichal Privoznik <mprivozn@redhat.com>2022-02-11 13:14:02 +0100
commit70f8299285fac1533153832f47711fa1f0dbd3b6 (patch)
tree939e902a7040e96465fdc41ec9782cc3b42540ec /src/ch
parenta99d876a0f58b17160d55e9df0d0f42a417b89b8 (diff)
downloadlibvirt-70f8299285fac1533153832f47711fa1f0dbd3b6.tar.gz
ch: Report VIR_DRV_FEATURE_NETWORK_UPDATE_HAS_CORRECT_ORDER as supported
Even though the CH driver doesn't implement virNetworkUpdate() API, when it does it will see the arguments in correct order. This is similar to other drivers that don't implement the API, like ESX, libxl, LXC, etc. Enabling this driver feature stops clients from swapping the arguments (see comment in the API for more info). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Diffstat (limited to 'src/ch')
-rw-r--r--src/ch/ch_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/ch_driver.c b/src/ch/ch_driver.c
index ef74a00bf7..a0ff687d05 100644
--- a/src/ch/ch_driver.c
+++ b/src/ch/ch_driver.c
@@ -924,6 +924,7 @@ chConnectSupportsFeature(virConnectPtr conn,
switch ((virDrvFeature) feature) {
case VIR_DRV_FEATURE_TYPED_PARAM_STRING:
+ case VIR_DRV_FEATURE_NETWORK_UPDATE_HAS_CORRECT_ORDER:
return 1;
case VIR_DRV_FEATURE_MIGRATION_V2:
case VIR_DRV_FEATURE_MIGRATION_V3:
@@ -939,7 +940,6 @@ chConnectSupportsFeature(virConnectPtr conn,
case VIR_DRV_FEATURE_REMOTE:
case VIR_DRV_FEATURE_REMOTE_CLOSE_CALLBACK:
case VIR_DRV_FEATURE_REMOTE_EVENT_CALLBACK:
- case VIR_DRV_FEATURE_NETWORK_UPDATE_HAS_CORRECT_ORDER:
default:
return 0;
}