X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2Fovs%2Fovsuuid.py;h=56fdad05ee55ade305cc026167557a62ffaa053c;hb=9387b97098afe90403cc139ad2b55ce7e02bc4a2;hp=8da36c6c355730b6bd1cddc73a41ca094472140d;hpb=5c3a4660c0ab317f904446bef8cf1bcce439d754;p=openvswitch diff --git a/python/ovs/ovsuuid.py b/python/ovs/ovsuuid.py index 8da36c6c..56fdad05 100644 --- a/python/ovs/ovsuuid.py +++ b/python/ovs/ovsuuid.py @@ -1,4 +1,4 @@ -# Copyright (c) 2009, 2010, 2011 Nicira Networks +# Copyright (c) 2009, 2010, 2011 Nicira, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import ovs.db.parser uuidRE = re.compile("^xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx$" .replace('x', '[0-9a-fA-F]')) + def zero(): return uuid.UUID(int=0) @@ -51,7 +52,7 @@ def from_json(json, symtab=None): raise e if name not in symtab: - symtab[name] = uuid4() + symtab[name] = uuid.uuid4() return symtab[name]