Re: [PATCH 5/6] network: allow VIR_NETWORK_CREATE_VALIDATE flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Thursday in 2021, Kristina Hanicova wrote:
Signed-off-by: Kristina Hanicova <khanicov@xxxxxxxxxx>
---
src/network/bridge_driver.c | 4 ++--
src/test/test_driver.c      | 4 ++--
src/vbox/vbox_network.c     | 3 ++-
3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/vbox/vbox_network.c b/src/vbox/vbox_network.c
index 2826937f81..d9402eff42 100644
--- a/src/vbox/vbox_network.c
+++ b/src/vbox/vbox_network.c
@@ -386,7 +386,8 @@ vboxNetworkDefineCreateXML(virConnectPtr conn, const char *xml, bool start,
    virNetworkPtr ret = NULL;
    nsresult rc;

-    virCheckFlags(VIR_NETWORK_DEFINE_VALIDATE, NULL);
+    virCheckFlags(VIR_NETWORK_DEFINE_VALIDATE |
+                  VIR_NETWORK_CREATE_VALIDATE, NULL);


Again, since we rely on these two flags to be the same, I'd leave this
only checking for VIR_NETWORK_DEFINE_VALIDATE.

Anyone adding asymetric flags will then do the work to split them up.

Jano

    if (!data->vboxObj)
        return ret;
--
2.31.1

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux