Also add the ability to run database commands on the new schema using ovn-nbctl.
Signed-off-by: Gurucharan Shetty <g...@ovn.org> --- ovn/ovn-nb.ovsschema | 18 ++++++++++++++++-- ovn/ovn-nb.xml | 24 ++++++++++++++++++++++++ ovn/utilities/ovn-nbctl.c | 4 ++++ 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/ovn/ovn-nb.ovsschema b/ovn/ovn-nb.ovsschema index 9fb8cd1..9505935 100644 --- a/ovn/ovn-nb.ovsschema +++ b/ovn/ovn-nb.ovsschema @@ -1,7 +1,7 @@ { "name": "OVN_Northbound", - "version": "2.0.1", - "cksum": "660370796 4618", + "version": "2.0.2", + "cksum": "3019970937 5337", "tables": { "Logical_Switch": { "columns": { @@ -16,6 +16,11 @@ "refType": "strong"}, "min": 0, "max": "unlimited"}}, + "loadbalancer": {"type": {"key": {"type": "uuid", + "refTable": "Load_Balancer", + "refType": "strong"}, + "min": 0, + "max": 1}}, "external_ids": { "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}}}, @@ -48,6 +53,15 @@ "min": 0, "max": "unlimited"}}}, "indexes": [["name"]], "isRoot": false}, + "Load_Balancer": { + "columns": { + "vips": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}, + "external_ids": { + "type": {"key": "string", "value": "string", + "min": 0, "max": "unlimited"}}}, + "isRoot": true}, "ACL": { "columns": { "priority": {"type": {"key": {"type": "integer", diff --git a/ovn/ovn-nb.xml b/ovn/ovn-nb.xml index ef34c9b..d2673ae 100644 --- a/ovn/ovn-nb.xml +++ b/ovn/ovn-nb.xml @@ -59,6 +59,11 @@ Access control rules that apply to packets within the logical switch. </column> + <column name="loadbalancer"> + Loadbalance a virtual ipv4 address to a set of logical port endpoint + ipv4 addresses + </column> + <group title="Common Columns"> <column name="external_ids"> See <em>External IDs</em> at the beginning of this document. @@ -326,6 +331,25 @@ </group> </table> + <table name="Load_Balancer" title="loadbalancer"> + <p> + Each row represents one loadbalancer + </p> + + <column name="vips"> + <p> + A map of virtual ipv4 addresses associated with this load balancer and + their corresponding endpoint ipv4 addresses separated by commas. + </p> + </column> + + <group title="Common Columns"> + <column name="external_ids"> + See <em>External IDs</em> at the beginning of this document. + </column> + </group> + </table> + <table name="ACL" title="Access Control List (ACL) rule"> <p> Each row in this table represents one ACL rule for a logical switch diff --git a/ovn/utilities/ovn-nbctl.c b/ovn/utilities/ovn-nbctl.c index 2303f31..5b3f081 100644 --- a/ovn/utilities/ovn-nbctl.c +++ b/ovn/utilities/ovn-nbctl.c @@ -1073,6 +1073,10 @@ static const struct ctl_table_class tables[] = { {{NULL, NULL, NULL}, {NULL, NULL, NULL}}}, + {&nbrec_table_load_balancer, + {{NULL, NULL, NULL}, + {NULL, NULL, NULL}}}, + {&nbrec_table_logical_router, {{&nbrec_table_logical_router, &nbrec_logical_router_col_name, NULL}, {NULL, NULL, NULL}}}, -- 1.9.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev