python: add set type for ovs.idl.data.Datum.from_python
authorZong Kai LI <zealokii@gmail.com>
Thu, 21 Jul 2016 06:17:28 +0000 (14:17 +0800)
committerRussell Bryant <russell@ovn.org>
Mon, 25 Jul 2016 14:40:44 +0000 (10:40 -0400)
commit38c44378433b377bea6d4ff0fa4412a356cbfad3
tree0db64425a6e9c7f71c706dd966810ed80c2ad5f4
parent568b9dc8871582f968bd9e66a69a35b9acf93602
python: add set type for ovs.idl.data.Datum.from_python

ovs.db.idl.Datum.from_python fails to handle set type value, while set
type is also a common iterable sequence, just like list and tuple.
No reason IDL caller must to turn set type parameters to list or tuple
type. Otherwise, they will fail to insert data, but get no exception.

Reported-at: https://bugs.launchpad.net/networking-ovn/+bug/1605573
Signed-off-by: Zong Kai LI <zealokii@gmail.com>
Acked-by: Richard Theis <rtheis@us.ibm.com>
Tested-by: Richard Theis <rtheis@us.ibm.com>
Signed-off-by: Russell Bryant <russell@ovn.org>
python/ovs/db/data.py