Add option to configure TCP_TW_RECYCLE in kernel

related-to: PROD-23264

Change-Id: I72eaf4b8ff3089c7bdaa75a8f1772274b8189a42
diff --git a/README.rst b/README.rst
index 4baa550..827ddc1 100644
--- a/README.rst
+++ b/README.rst
@@ -1334,7 +1334,20 @@
           port: 8443
       ....
 
+Configure TCP_TW_RECYCLE in kernel
+------------------------------------
 
+Enable fast recycling of TIME-WAIT sockets. To enable set parameter to 1, which is
+default value in formula. To turn off this option set parameter to 0:
+
+.. code-block:: yaml
+
+    opencontrail:
+      ....
+      common
+        ....
+        tcp_tw_recycle: 0
+        ....
 
 Usage
 =====
diff --git a/opencontrail/common.sls b/opencontrail/common.sls
index e46e824..76d2ec9 100644
--- a/opencontrail/common.sls
+++ b/opencontrail/common.sls
@@ -48,7 +48,7 @@
 # TODO: Remove this for Ubuntu Bionic (4.15 is the default kernel)
 net.ipv4.tcp_tw_recycle:
   sysctl.present:
-    - value: 1
+    - value: {{ common.get('tcp_tw_recycle', 1) }}
 {% endif %}
 
 net.ipv4.tcp_tw_reuse: