commit | 7d0032bf8b32fc653074885baabb019106eb86e8 | [log] [tgz] |
---|---|---|
author | Thomas Vachuska <tom@onlab.us> | Tue Nov 04 17:39:57 2014 -0800 |
committer | Thomas Vachuska <tom@onlab.us> | Tue Nov 04 17:39:57 2014 -0800 |
tree | ba26d7043055e9a32e648226b33aa5515d163547 | |
parent | 34c8164a616061c855f143777298c0668c91c914 [diff] [blame] |
Added constructors for serialization of the new constraint types and registered the types with the serializer pool.
diff --git a/core/api/src/main/java/org/onlab/onos/net/resource/Bandwidth.java b/core/api/src/main/java/org/onlab/onos/net/resource/Bandwidth.java index 9dddb86..fcb3cd8 100644 --- a/core/api/src/main/java/org/onlab/onos/net/resource/Bandwidth.java +++ b/core/api/src/main/java/org/onlab/onos/net/resource/Bandwidth.java
@@ -33,6 +33,11 @@ this.bandwidth = bandwidth; } + // Constructor for serialization + private Bandwidth() { + this.bandwidth = 0; + } + /** * Creates a new instance with given bandwidth. *