git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python: Implement write support in Python IDL for OVSDB.
[sliver-openvswitch.git]
/
python
/
ovs
/
db
/
schema.py
diff --git
a/python/ovs/db/schema.py
b/python/ovs/db/schema.py
index
7e18564
..
675f4ec
100644
(file)
--- a/
python/ovs/db/schema.py
+++ b/
python/ovs/db/schema.py
@@
-95,6
+95,9
@@
class DbSchema(object):
json["version"] = self.version
return json
+ def copy(self):
+ return DbSchema.from_json(self.to_json())
+
def __follow_ref_table(self, column, base, base_name):
if not base or base.type != types.UuidType or not base.ref_table_name:
return