]> git.proxmox.com Git - ovs.git/commitdiff
ovn-controller: Monitor port bindings of parent ports.
authorwangqianyu <wang.qianyu@zte.com.cn>
Wed, 2 Aug 2017 20:36:29 +0000 (13:36 -0700)
committerBen Pfaff <blp@ovn.org>
Wed, 2 Aug 2017 20:37:07 +0000 (13:37 -0700)
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>
ovn/controller/ovn-controller.c

index da3e83a1559366a9f2f2a609a34a081c528df04a..f1fc74155d39b5911c1896578e8ec867bdff9443 100644 (file)
@@ -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) {