From nobody Fri Oct 18 06:15:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=riseup.net ARC-Seal: i=1; a=rsa-sha256; t=1693753620; cv=none; d=zohomail.com; s=zohoarc; b=ETupKFxKLlQNADlcpAC8RpyvhK7mo7RHDC5YYcEQBAGD1d/DY8yxCgzGcKotu6XdvNK5fMUEVLic8VNFXAcKGDtWoRB4AdM+Cx6VJ8DBhUfA66qsFyfExrjj4n+vmU0fLXzdTBWf7/xudBD3ewh2UN0sVWFvM6lL+6W95dVdSEY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693753620; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=NYrI+EYuUvkR4MAjEHvsH/7My9ri3YjAWuWjuN8FQwc=; b=kdyCaQ+bioNXSo7JDfPFdrz+rE+lT3tVJaUhyOFtQyjm5yX8SH3QLVFAKT4/7MQUJSlwbnxMpNn8r9Xph90SlVwMQ6nIqRPJrdh9nikWQOm/Fv0sztx3/wsM4GrquyCHKk+nN/sHxw+2FrBJXI6P4oSa+H9U/BG13FfJxjQnRkU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1693753620727840.0506730944566; Sun, 3 Sep 2023 08:07:00 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-491-vRcQyIgjNQitKLnF8w5Fzw-1; Sun, 03 Sep 2023 11:06:52 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C112E1817904; Sun, 3 Sep 2023 15:06:49 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id AE7AC1460FFA; Sun, 3 Sep 2023 15:06:49 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9165119465A8; Sun, 3 Sep 2023 15:06:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B8BE319465BD for ; Sun, 3 Sep 2023 15:06:47 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 8BF071460FFB; Sun, 3 Sep 2023 15:06:47 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 845461460FFA for ; Sun, 3 Sep 2023 15:06:47 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6809693A9A6 for ; Sun, 3 Sep 2023 15:06:47 +0000 (UTC) Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-549-z4k9Z85BN7q12-s4lgIJMg-1; Sun, 03 Sep 2023 11:06:45 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4Rdw8h4yKpz9tGn for ; Sun, 3 Sep 2023 15:06:44 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Rdw8g3hbbzFq1y; Sun, 3 Sep 2023 15:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693753619; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=NYrI+EYuUvkR4MAjEHvsH/7My9ri3YjAWuWjuN8FQwc=; b=aPlKn8fvs188D/XSopRqjhZ3GpTh8iPbiBwqZf62VdubNsxm/mY16ykJv1123ziAVSJSIz HJZcimMjvxGNwFHSxU96/0W8zqNb4+R8BMsEdSFfdaxlIz+l4CtQCM14uwY7O2wexLGgdY WMUG+K0xZvgkEUHj+Ey1IHTvALGExyA= X-MC-Unique: vRcQyIgjNQitKLnF8w5Fzw-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: z4k9Z85BN7q12-s4lgIJMg-1 X-Riseup-User-ID: 4FA2137808F8A537099FACB13C63E3DA3CB1FE313FC28554C9E3CBC3158A2488 From: K Shiva Kiran To: libvir-list@redhat.com Subject: [PATCH 7/8] Add Bridge Driver implementation for Network metadata change callbacks Date: Sun, 3 Sep 2023 20:28:39 +0530 Message-ID: <20230903150541.200896-8-shiva_kr@riseup.net> In-Reply-To: <20230903150541.200896-1-shiva_kr@riseup.net> References: <20230903150541.200896-1-shiva_kr@riseup.net> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: K Shiva Kiran Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: riseup.net Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693753621831100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: K Shiva Kiran --- 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); =20 + if (ret =3D=3D 0) { + virObjectEvent *event =3D NULL; + event =3D virNetworkEventMetadataChangeNewFromObj(obj, type, uri); + virObjectEventStateQueue(driver->networkEventState, event); + } + cleanup: virNetworkObjEndAPI(&obj); return ret; --=20 2.42.0