[PATCH 7/8] Add Bridge Driver implementation for Network metadata change callbacks

K Shiva Kiran posted 8 patches 10 months, 2 weeks ago
[PATCH 7/8] Add Bridge Driver implementation for Network metadata change callbacks
Posted by K Shiva Kiran 10 months, 2 weeks ago
Signed-off-by: K Shiva Kiran <shiva_kr@riseup.net>
---
 src/network/bridge_driver.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index caad085192..34c88278cd 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -5149,6 +5149,12 @@ networkSetMetadata(virNetworkPtr net,
                                    driver->xmlopt, cfg->stateDir,
                                    cfg->networkConfigDir, flags);
 
+    if (ret == 0) {
+        virObjectEvent *event = NULL;
+        event = virNetworkEventMetadataChangeNewFromObj(obj, type, uri);
+        virObjectEventStateQueue(driver->networkEventState, event);
+    }
+
  cleanup:
     virNetworkObjEndAPI(&obj);
     return ret;
-- 
2.42.0