commit | 79d6a83e2b2d3dd5b725a0feba52aa5e4e82deec | [log] [tgz] |
---|---|---|
author | sangho <sangho@onlab.us> | Tue May 02 14:53:46 2017 +0900 |
committer | Sangho Shin <sangho@onlab.us> | Tue May 16 06:17:29 2017 +0000 |
tree | 173fa7dddb11fcd66017c7e164a8d8a92274a36b | |
parent | 66858779352fbf0cead23d74750b9b839d9ed3a2 [diff] |
Reduces the port number range for snat to reduce snat handler initialization time. - It took 25 secs and now it taks only 200 ms. - It is a temporary fix. It will be removed when OVS-SNAT features is merged. Change-Id: If98ba8f4f59ca90b3300c64ea0da92c9558c4303
diff --git a/apps/openstacknetworking/src/main/java/org/onosproject/openstacknetworking/impl/OpenstackRoutingSnatHandler.java b/apps/openstacknetworking/src/main/java/org/onosproject/openstacknetworking/impl/OpenstackRoutingSnatHandler.java index ab8f92c..05b919a 100644 --- a/apps/openstacknetworking/src/main/java/org/onosproject/openstacknetworking/impl/OpenstackRoutingSnatHandler.java +++ b/apps/openstacknetworking/src/main/java/org/onosproject/openstacknetworking/impl/OpenstackRoutingSnatHandler.java
@@ -86,7 +86,7 @@ private static final String ERR_UNSUPPORTED_NET_TYPE = "Unsupported network type"; private static final int TIME_OUT_SNAT_RULE = 120; private static final long TIME_OUT_SNAT_PORT_MS = 120 * 1000; - private static final int TP_PORT_MINIMUM_NUM = 1024; + private static final int TP_PORT_MINIMUM_NUM = 65000; private static final int TP_PORT_MAXIMUM_NUM = 65535; private static final KryoNamespace.Builder NUMBER_SERIALIZER = KryoNamespace.newBuilder()