From af616f686b851c7e31ee48f16e7ae7df6f550553 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 17 Aug 2009 09:30:29 -0700 Subject: [PATCH] ovs-brcompatd: Don't include the local port in BRCTL_GET_PORT_LIST output. The BRCTL_GET_PORT_LIST ioctl is not supposed to include the bridge port itself in the list of ports, but ovs-brcompatd was doing that. --- vswitchd/ovs-brcompatd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vswitchd/ovs-brcompatd.c b/vswitchd/ovs-brcompatd.c index 02ebab8c8..50ed632a2 100644 --- a/vswitchd/ovs-brcompatd.c +++ b/vswitchd/ovs-brcompatd.c @@ -865,6 +865,8 @@ handle_get_ports_cmd(struct ofpbuf *buffer) svec_init(&ports); get_bridge_ports(ovs_bridge, &ports, br_vlan); + svec_sort(&ports); + svec_del(&ports, linux_bridge); send_ifindex_reply(seq, &ports); /* XXX bonds won't show up */ svec_destroy(&ports); -- 2.43.0