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
This commit is contained in:
sangho 2017-05-02 14:53:46 +09:00 committed by Sangho Shin
parent 6685877935
commit 79d6a83e2b

View File

@ -86,7 +86,7 @@ public class OpenstackRoutingSnatHandler {
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()