summaryrefslogtreecommitdiff
path: root/ovn
diff options
context:
space:
mode:
authorLiran Schour <lirans@il.ibm.com>2016-07-18 11:45:59 +0300
committerBen Pfaff <blp@ovn.org>2016-07-18 23:02:30 -0700
commit791a7747427310f6a09c7b2f57a99d65338dfb45 (patch)
tree8ced9d1de3562edfdd59b59a76ad0d30ebbe0b13 /ovn
parent16ebb90e05cad5a3013cadd5b4249fac93935447 (diff)
downloadopenvswitch-791a7747427310f6a09c7b2f57a99d65338dfb45.tar.gz
ovn: Add datapath column to the MAC_Binding table
This will allow ovn-controller to conditionally monitor MAC_Binding table according to datapath column. Signed-off-by: Liran Schour <lirans@il.ibm.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovn')
-rw-r--r--ovn/controller/pinctrl.c1
-rw-r--r--ovn/ovn-sb.ovsschema8
-rw-r--r--ovn/ovn-sb.xml3
3 files changed, 9 insertions, 3 deletions
diff --git a/ovn/controller/pinctrl.c b/ovn/controller/pinctrl.c
index 137030198..634271942 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 aab4ef587..605b60588 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",
+ "version": "1.6.0",
+ "cksum": "1715817174 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 1b5bf9e4d..3d26e6531 100644
--- a/ovn/ovn-sb.xml
+++ b/ovn/ovn-sb.xml
@@ -1822,6 +1822,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">