Fix some typos in the code.
This fixes a crash reported on ryu-devel@.
http://sourceforge.net/p/ryu/mailman/message/33607025/

Reported-by: Jason Syu <[email protected]>
Tested-by: Jason Syu <[email protected]>
Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/lib/ovs/vsctl.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ryu/lib/ovs/vsctl.py b/ryu/lib/ovs/vsctl.py
index 5e57fbc..8d121f5 100644
--- a/ryu/lib/ovs/vsctl.py
+++ b/ryu/lib/ovs/vsctl.py
@@ -307,7 +307,7 @@ class VSCtlContext(object):
     @staticmethod
     def port_is_fake_bridge(ovsrec_port):
         return (ovsrec_port.fake_bridge and
-                ovsrec_port.tag >= 0 and ovsrec_port.tab <= 4095)
+                ovsrec_port.tag >= 0 and ovsrec_port.tag <= 4095)
 
     def _populate_cache(self, ovsrec_bridges):
         if self.cache_valid:
@@ -690,7 +690,7 @@ class VSCtlContext(object):
             ovsrec_port.name = br_name
             ovsrec_port.interfaces = [ovsrec_iface]
             ovsrec_port.fake_bridge = True
-            ovsrec_port.tag = [vlan]
+            ovsrec_port.tag = vlan
 
             self.bridge_insert_port(parent.br_cfg, ovsrec_port)
 
-- 
2.1.0


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to