Looks Good. On Tue, Mar 1, 2011 at 2:19 PM, Ben Pfaff <[email protected]> wrote: > Otherwise the refType always appears to be 0 (OVSDB_REF_STRONG). > > Nothing in the code that uses these structures actually uses the refType > yet, so this does not fix any existing bug, but upcoming commits will add > users. > --- > python/ovs/db/types.py | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/python/ovs/db/types.py b/python/ovs/db/types.py > index a3b6ba7..2ca0d29 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): > -- > 1.7.1 > > > _______________________________________________ > dev mailing list > [email protected] > http://openvswitch.org/mailman/listinfo/dev_openvswitch.org >
_______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev_openvswitch.org
