commit | a88db496d52460c62b54e4e9d688461cbe14afa3 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Mon Nov 23 13:21:04 2015 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Nov 23 23:57:09 2015 +0000 |
tree | 48a3f4af2e1216bea739e19804266ee054e20f64 | |
parent | 4303ac2574e8073941b42c493d44a89a46235bd9 [diff] |
Avoid double wrap of Bandwidth class Change-Id: I6bb95beafd55364499df64429c0788153a0b1624
diff --git a/core/api/src/main/java/org/onosproject/net/resource/link/DefaultLinkResourceRequest.java b/core/api/src/main/java/org/onosproject/net/resource/link/DefaultLinkResourceRequest.java index b57465f..583570f 100644 --- a/core/api/src/main/java/org/onosproject/net/resource/link/DefaultLinkResourceRequest.java +++ b/core/api/src/main/java/org/onosproject/net/resource/link/DefaultLinkResourceRequest.java
@@ -201,7 +201,7 @@ return addLambdaRequest(); } else if (constraint instanceof BandwidthConstraint) { BandwidthConstraint bw = (BandwidthConstraint) constraint; - return addBandwidthRequest(bw.bandwidth().toDouble()); + return addBandwidthRequest(bw.bandwidth().bps()); } return this; }