From 9ccec7bb5aa9746e74d44bbf151ae18ac7ccdd06 Mon Sep 17 00:00:00 2001 From: Yury Kulazhenkov Date: Sun, 15 Jan 2017 08:50:42 +0300 Subject: [PATCH] sync ryu.services.protocols.ovsdb.client.Idl code with ovs lib The ovs library has changed its implementation of the idl.Idl class. The CTOR in ryu.services.protocols.ovsdb.client.Idl updated to be compatible with the current version. Patch fix the problem: if table.cond_changed: AttributeError: 'TableSchema' object has no attribute 'cond_changed' Signed-off-by: FUJITA Tomonori --- ryu/services/protocols/ovsdb/client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ryu/services/protocols/ovsdb/client.py b/ryu/services/protocols/ovsdb/client.py index 0f62f86e..d0ec5b0a 100644 --- a/ryu/services/protocols/ovsdb/client.py +++ b/ryu/services/protocols/ovsdb/client.py @@ -215,6 +215,8 @@ class Idl(idl.Idl): self._monitor_request_id = None self._last_seqno = None self.change_seqno = 0 + self.uuid = uuid.uuid1() + self.state = self.IDL_S_INITIAL # Database locking. self.lock_name = None # Name of lock we need, None if none. @@ -233,6 +235,8 @@ class Idl(idl.Idl): table.need_table = False table.rows = {} table.idl = self + table.condition = [] + table.cond_changed = False @property def events(self):