This will allow ovn-controller to conditionally monitor MAC_Binding table according to datapath column.
Signed-off-by: Liran Schour <lir...@il.ibm.com> --- ovn/controller/pinctrl.c | 1 + ovn/ovn-sb.ovsschema | 6 ++++-- ovn/ovn-sb.xml | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ovn/controller/pinctrl.c b/ovn/controller/pinctrl.c index 116397e..e00b115 100644 --- a/ovn/controller/pinctrl.c +++ b/ovn/controller/pinctrl.c @@ -468,6 +468,7 @@ run_put_arp(struct controller_ctx *ctx, const struct lport_index *lports, sbrec_mac_binding_set_logical_port(b, pb->logical_port); sbrec_mac_binding_set_ip(b, ip_string); sbrec_mac_binding_set_mac(b, mac_string); + sbrec_mac_binding_set_datapath(b, pb->datapath); } static void diff --git a/ovn/ovn-sb.ovsschema b/ovn/ovn-sb.ovsschema index 06e8a07..afc895d 100644 --- a/ovn/ovn-sb.ovsschema +++ b/ovn/ovn-sb.ovsschema @@ -1,7 +1,7 @@ { "name": "OVN_Southbound", "version": "1.3.0", - "cksum": "654726257 5528", + "cksum": "2640452665 5671", "tables": { "Chassis": { "columns": { @@ -108,6 +108,8 @@ "columns": { "logical_port": {"type": "string"}, "ip": {"type": "string"}, - "mac": {"type": "string"}}, + "mac": {"type": "string"}, + "datapath": {"type": {"key": {"type": "uuid", + "refTable": "Datapath_Binding"}}}}, "indexes": [["logical_port", "ip"]], "isRoot": true}}} diff --git a/ovn/ovn-sb.xml b/ovn/ovn-sb.xml index d877f76..4d2f671 100644 --- a/ovn/ovn-sb.xml +++ b/ovn/ovn-sb.xml @@ -1545,5 +1545,8 @@ tcp.flags = RST; <column name="mac"> The Ethernet address to which the IP is bound. </column> + <column name="datapath"> + The logical datapath to which the logical port belongs. + </column> </table> </database> -- 2.1.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev