Re: [libvirt PATCH 04/10] util: query/set BR_ISOLATED flag on netdevs attached to bridge

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

 



On Sun, Feb 16, 2020 at 11:22:53PM -0500, Laine Stump wrote:
When this flag is set for an interface attached to a bridge, traffic
to/from the specified interface can only enter/exit the bridge via
another attached interface that *doesn't* have the BR_ISOLATED flag
set. This can be used to permit guests to communicate with the rest of
the network, but not with each other.

Signed-off-by: Laine Stump <laine@xxxxxxxxxx>
---
src/libvirt_private.syms   |  2 ++
src/util/virnetdevbridge.c | 46 ++++++++++++++++++++++++++++++++++++++
src/util/virnetdevbridge.h |  9 ++++++++
3 files changed, 57 insertions(+)

@@ -354,6 +378,28 @@ virNetDevBridgePortSetUnicastFlood(const char *brname G_GNUC_UNUSED,
                         _("Unable to set bridge port unicast_flood on this platform"));
    return -1;
}
+
+
+int
+virNetDevBridgePortGetIsolated(const char *brname G_GNUC_UNUSED,
+                                   const char *ifname G_GNUC_UNUSED,
+                                   bool *enable G_GNUC_UNUSED)

Indentation is off here.

+{
+    virReportSystemError(ENOSYS, "%s",
+                         _("Unable to get bridge port isolated on this platform"));
+    return -1;
+}
+
+
+int

Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

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