diff mbox

[ovs-dev,1/3] ovsschema: Add protected column to Port table

Message ID 1479043840-6312-2-git-send-email-ben@benjii.net
State Accepted
Headers show

Commit Message

Ben Kelly Nov. 13, 2016, 1:30 p.m. UTC
Supports setting of protected mode true/false per port e.g.

 # ovs-vsctl set port virtX protected=1/0

Signed-off-by: Ben Kelly <ben@benjii.net>
---
 vswitchd/vswitch.ovsschema | 4 +++-
 vswitchd/vswitch.xml       | 8 ++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/vswitchd/vswitch.ovsschema b/vswitchd/vswitch.ovsschema
index 8966803..b04d360 100644
--- a/vswitchd/vswitch.ovsschema
+++ b/vswitchd/vswitch.ovsschema
@@ -1,6 +1,6 @@ 
 {"name": "Open_vSwitch",
  "version": "7.14.0",
- "cksum": "3974332717 22936",
+ "cksum": "3374030633 22987",
  "tables": {
    "Open_vSwitch": {
      "columns": {
@@ -192,6 +192,8 @@ 
        "statistics": {
          "type": {"key": "string", "value": "integer", "min": 0, "max": "unlimited"},
          "ephemeral": true},
+       "protected": {
+         "type": "boolean"},
        "other_config": {
          "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}},
        "external_ids": {
diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml
index 99c1476..66c349b 100644
--- a/vswitchd/vswitch.xml
+++ b/vswitchd/vswitch.xml
@@ -1778,6 +1778,14 @@ 
         Bridge?  See ovs-vsctl(8) for more information.
       </column>
 
+      <column name="protected" type='{"type": "boolean"}'>
+        The protected ports feature allows certain ports to be designated as
+        protected. Traffic between protected ports is blocked. Protected
+        ports can send traffic to unprotected ports. Unprotected ports can
+        send traffic to any port.
+        Default is false.
+      </column>
+
       <column name="external_ids" key="fake-bridge-id-*">
         External IDs for a fake bridge (see the <ref column="fake_bridge"/>
         column) are defined by prefixing a <ref table="Bridge"/> <ref