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 1370301..6342719 100644 --- a/ovn/controller/pinctrl.c +++ b/ovn/controller/pinctrl.c @@ -639,6 +639,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 aab4ef5..50ba55a 100644 --- a/ovn/ovn-sb.ovsschema +++ b/ovn/ovn-sb.ovsschema @@ -1,7 +1,7 @@ { "name": "OVN_Southbound", "version": "1.5.0", - "cksum": "2807058982 6398", + "cksum": "1035504231 6541", "tables": { "Chassis": { "columns": { @@ -116,7 +116,9 @@ "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}, "DHCP_Options": { diff --git a/ovn/ovn-sb.xml b/ovn/ovn-sb.xml index 7b45bbb..6d96d3f 100644 --- a/ovn/ovn-sb.xml +++ b/ovn/ovn-sb.xml @@ -1823,6 +1823,9 @@ 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> <table name="DHCP_Options" title="DHCP Options supported by native OVN DHCP"> -- 2.1.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev