Code Review
/
netvirt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Added Update and Remove commands code"
[netvirt.git]
/
openstack
/
net-virt-sfc
/
impl
/
src
/
main
/
java
/
org
/
opendaylight
/
ovsdb
/
openstack
/
netvirt
/
sfc
/
workaround
/
services
/
SfcClassifierService.java
diff --git
a/openstack/net-virt-sfc/impl/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/sfc/workaround/services/SfcClassifierService.java
b/openstack/net-virt-sfc/impl/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/sfc/workaround/services/SfcClassifierService.java
index 947dcec1f3d8211f94d7796df07e0985a468745f..d3357053d1e7ebf0738ba3c1753da5d14d7fa69b 100644
(file)
--- a/
openstack/net-virt-sfc/impl/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/sfc/workaround/services/SfcClassifierService.java
+++ b/
openstack/net-virt-sfc/impl/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/sfc/workaround/services/SfcClassifierService.java
@@
-68,11
+68,8
@@
public class SfcClassifierService extends AbstractServiceInstance implements Con
}
}
- //private AtomicLong flowCookieInc = new AtomicLong(0x1L);
private BigInteger getCookie(FlowID flowID) {
private BigInteger getCookie(FlowID flowID) {
- String cookieString = new String().format("1110%02d%010d", flowID.value, cookieIndex++);
- //new String().format("1100%02d00%04d", flowID.value, flowCookieInc.getAndIncrement());
- // "1100%02000000d%04d"
+ String cookieString = String.format("1110%02d%010d", flowID.value, cookieIndex++);
return new BigInteger(cookieString, 16);
}
return new BigInteger(cookieString, 16);
}