diff options
author | Yury Kulazhenkov <kulazhenkov@gmail.com> | 2017-01-15 08:50:42 +0300 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-01-16 16:28:22 +0900 |
commit | 9ccec7bb5aa9746e74d44bbf151ae18ac7ccdd06 (patch) | |
tree | 28c45c3cb41dd098c53968125a8fc858de8ee4e4 | |
parent | 6d4b094dc35bb4f3092fc4e141b0b685d6353c4d (diff) |
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 <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/services/protocols/ovsdb/client.py | 4 |
1 files changed, 4 insertions, 0 deletions
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): |