commit | 0b22d0e0a39eda973e1fd98c4dadd252f0c275e8 | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Tue Apr 02 01:12:46 2013 +0000 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Tue Apr 02 01:12:46 2013 +0000 |
tree | 33e5d401acd02788d28ee7641b089b520d1a4d02 | |
parent | 5e6af8d34ad2a6e47c6a634862e7044fd3249d93 [diff] |
Add method getNextFlowEntryId() which is used internally to generate the FlowEntryIDs. Currently, for simplicity the upper 32 bits are randomly generated, while the lower 32 bits are sequential. If all lower 32 bits are used, the upper 32 bits are regenerated. In the future, we should use a better mechanism (e.g., use Zookeeper to generate the upper 32 bits in semi-sequential fashion, and to guarantee they are unique).