X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2Fovs%2Fdb%2Ftypes.py;h=2ca0d2913303849c04dd97110844477dff841c06;hb=530af29c41eb04d355e400871fa58f39002315de;hp=a3b6ba70d39dfd81f7dc79b62566e9c817f1e791;hpb=5601839c4565e31405803416c79aecc0db9a40c0;p=openvswitch diff --git a/python/ovs/db/types.py b/python/ovs/db/types.py index a3b6ba70..2ca0d291 100644 --- a/python/ovs/db/types.py +++ b/python/ovs/db/types.py @@ -1,4 +1,4 @@ -# Copyright (c) 2009, 2010 Nicira Networks +# Copyright (c) 2009, 2010, 2011 Nicira Networks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -363,6 +363,7 @@ class BaseType(object): elif self.type == UuidType: if self.ref_table is not None: stmts.append('%s.u.uuid.refTableName = "%s";' % (var, escapeCString(self.ref_table))) + stmts.append('%s.u.uuid.refType = OVSDB_REF_%s;' % (var, self.ref_type.upper())) return '\n'.join([indent + stmt for stmt in stmts]) class Type(object):