From: Ben Pfaff Date: Mon, 17 Aug 2009 16:30:29 +0000 (-0700) Subject: ovs-brcompatd: Don't include the local port in BRCTL_GET_PORT_LIST output. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af616f686b851c7e31ee48f16e7ae7df6f550553;p=openvswitch 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. --- diff --git a/vswitchd/ovs-brcompatd.c b/vswitchd/ovs-brcompatd.c index 02ebab8c..50ed632a 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);