Skip to content

Commit

Permalink
ovn-nb: Add 'name' field to Logical Router
Browse files Browse the repository at this point in the history
Adding a name identifier will increase convinence
for Openstack (or Other CMS) that want to identify
the logical router (or store the CMS id in the router name)

Signed-off-by: Gal Sagie <[email protected]>
Acked-by: Russell Bryant <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
GalSagie authored and blp committed Jul 14, 2015
1 parent af6d538 commit de8fe48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions ovn/ovn-nb.ovsschema
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"isRoot": false},
"Logical_Router": {
"columns": {
"name": {"type": "string"},
"ports": {"type": {"key": {"type": "uuid",
"refTable": "Logical_Router_Port",
"refType": "weak"},
Expand Down
9 changes: 9 additions & 0 deletions ovn/ovn-nb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,15 @@
Each row represents one L3 logical router.
</p>

<column name="name">
<p>
A name for the logical router. This name has no special meaning or purpose
other than to provide convenience for human interaction with the ovn-nb
database. There is no requirement for the name to be unique. The
logical router's UUID should be used as the unique identifier.
</p>
</column>

<column name="ports">
The router's ports. This is a set of weak references, so a <ref
table="Logical_Switch"/> must also refer to any given <ref
Expand Down

0 comments on commit de8fe48

Please sign in to comment.