[ovs-dev] [PATCH ovn 1/3] ovn: Rename "switch" to "lswitch" in NB schema definition.
Justin Pettit
jpettit at nicira.com
Wed Mar 11 23:12:52 UTC 2015
The IDL will blow up when compiling the NB schema, since "switch" is a
C reserved keyword. This commit changes it to "lswitch".
Signed-off-by: Justin Pettit <jpettit at nicira.com>
---
ovn/ovn-nb.ovsschema | 12 ++++++------
ovn/ovn-nb.xml | 10 +++++-----
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/ovn/ovn-nb.ovsschema b/ovn/ovn-nb.ovsschema
index ad675ac..b45723c 100644
--- a/ovn/ovn-nb.ovsschema
+++ b/ovn/ovn-nb.ovsschema
@@ -12,9 +12,9 @@
"min": 0, "max": "unlimited"}}}},
"Logical_Port": {
"columns": {
- "switch": {"type": {"key": {"type": "uuid",
- "refTable": "Logical_Switch",
- "refType": "strong"}}},
+ "lswitch": {"type": {"key": {"type": "uuid",
+ "refTable": "Logical_Switch",
+ "refType": "strong"}}},
"name": {"type": "string"},
"macs": {"type": {"key": "string",
"min": 0,
@@ -29,9 +29,9 @@
"indexes": [["name"]]},
"ACL": {
"columns": {
- "switch": {"type": {"key": {"type": "uuid",
- "refTable": "Logical_Switch",
- "refType": "strong"}}},
+ "lswitch": {"type": {"key": {"type": "uuid",
+ "refTable": "Logical_Switch",
+ "refType": "strong"}}},
"priority": {"type": {"key": {"type": "integer",
"minInteger": 0,
"maxInteger": 65535}}},
diff --git a/ovn/ovn-nb.xml b/ovn/ovn-nb.xml
index 80190ca..9b245b1 100644
--- a/ovn/ovn-nb.xml
+++ b/ovn/ovn-nb.xml
@@ -34,7 +34,7 @@
<p>
Each row represents one L2 logical switch. A given switch's ports are
the <ref table="Logical_Port"/> rows whose <ref table="Logical_Port"
- column="switch"/> column points to its row.
+ column="lswitch"/> column points to its row.
</p>
<column name="router_port">
@@ -59,7 +59,7 @@
A port within an L2 logical switch.
</p>
- <column name="switch">
+ <column name="lswitch">
The logical switch to which the logical port is connected.
</column>
@@ -118,7 +118,7 @@
<table name="ACL" title="Access Control List (ACL) rule">
<p>
Each row in this table represents one ACL rule for the logical switch in
- its <ref column="switch"/> column. The <ref column="action"/> column for
+ its <ref column="lswitch"/> column. The <ref column="action"/> column for
the highest-<ref column="priority"/> matching row in this table
determines a packet's treatment. If no row matches, packets are allowed
by default. (Default-deny treatment is possible: add a rule with <ref
@@ -126,7 +126,7 @@
<code>deny</code> as <ref column="action"/>.)
</p>
- <column name="switch">
+ <column name="lswitch">
The switch to which the ACL rule applies. The expression in the
<ref column="match"/> column may match against logical ports
within this switch.
@@ -144,7 +144,7 @@
used for the <ref column="match" table="Pipeline" db="OVN"/> column in
the OVN database's <ref table="Pipeline" db="OVN"/> table. Match
<code>inport</code> and <code>outport</code> against names of logical
- ports within <ref column="switch"/> to implement ingress and egress ACLs,
+ ports within <ref column="lswitch"/> to implement ingress and egress ACLs,
respectively. In logical switches connected to logical routers, the
special port name <code>ROUTER</code> refers to the logical router port.
</column>
--
1.7.5.4
More information about the dev
mailing list