The method, set_db_attribute(), will be used by simple_vlan to set
tag column of Interface table.

Signed-off-by: Isaku Yamahata <[email protected]>
---
 ryu/lib/ovs/bridge.py |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ryu/lib/ovs/bridge.py b/ryu/lib/ovs/bridge.py
index 14876b0..4c8a8e8 100644
--- a/ryu/lib/ovs/bridge.py
+++ b/ryu/lib/ovs/bridge.py
@@ -103,6 +103,11 @@ class OVSBridge(object):
         command = ovs_vsctl.VSCtlCommand('del-controller', [self.br_name])
         self.run_command([command])
 
+    def set_db_attribute(self, table_name, record, column, value):
+        command = ovs_vsctl.VSCtlCommand(
+            'set', (table_name, record, '%s=%s' % (column, value)))
+        self.run_command([command])
+
     def db_get_val(self, table, record, column):
         command = ovs_vsctl.VSCtlCommand('get', (table, record, column))
         self.run_command([command])
-- 
1.7.10.4


------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to