Skip to content

Commit

Permalink
ovsschema: Add protected column to Port table
Browse files Browse the repository at this point in the history
Supports setting of protected mode true/false per port e.g.

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

Signed-off-by: Ben Kelly <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
  • Loading branch information
scrpi authored and shorman-netronome committed Nov 22, 2016
1 parent 3aaa1eb commit ced947a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vswitchd/vswitch.ovsschema
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{"name": "Open_vSwitch",
"version": "7.14.0",
"cksum": "3974332717 22936",
"cksum": "3374030633 22987",
"tables": {
"Open_vSwitch": {
"columns": {
Expand Down Expand Up @@ -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": {
Expand Down
8 changes: 8 additions & 0 deletions vswitchd/vswitch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ced947a

Please sign in to comment.