Skip to content

Commit

Permalink
ovn-controller: Monitor port bindings of parent ports.
Browse files Browse the repository at this point in the history
Neutron configure a trunk-sub port. The parent-port and sub-port located
in different network. there is a vm attached to parent port. And no vm
attached to the network of sub-port in the same chassis. In this
situation, the ovn-controller can not get the configuration info of
sub-port.

The reason is that ovn-controller does not monitor the port-binding with
parent.

This patch fix this bug.

Signed-off-by: wangqianyu <wang.qianyu@zte.com.cn>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
wangqianyu123 authored and blp committed Aug 2, 2017
1 parent 8b0c3c3 commit f80485a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ovn/controller/ovn-controller.c
Expand Up @@ -176,6 +176,7 @@ update_sb_monitors(struct ovsdb_idl *ovnsb_idl,
const char *name;
SSET_FOR_EACH (name, local_ifaces) {
sbrec_port_binding_add_clause_logical_port(&pb, OVSDB_F_EQ, name);
sbrec_port_binding_add_clause_parent_port(&pb, OVSDB_F_EQ, name);
}
}
if (local_datapaths) {
Expand Down

0 comments on commit f80485a

Please sign in to comment.