projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
694f267
)
ovs-brcompatd: Don't include the local port in BRCTL_GET_PORT_LIST output.
author
Ben Pfaff
<blp@nicira.com>
Mon, 17 Aug 2009 16:30:29 +0000
(09:30 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 18 Aug 2009 19:36:47 +0000
(12:36 -0700)
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
patch
|
blob
|
history
diff --git
a/vswitchd/ovs-brcompatd.c
b/vswitchd/ovs-brcompatd.c
index 02ebab8c8d029d6a150901aeb6c9afaca1959d06..50ed632a2fbdd126861c01a7daad1745e66c1516 100644
(file)
--- 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);