mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-09 06:16:10 +02:00
lib.ovs.vsctl: Fix a crash
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 <newdongfong@gmail.com> Tested-by: Jason Syu <newdongfong@gmail.com> Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
b0a69791bb
commit
76969c0c0a
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user