summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/helper-scripts/rapid/start.sh
diff options
context:
space:
mode:
authorYury Kylulin <yury.kylulin@intel.com>2020-07-24 16:13:57 +0000
committerYury Kylulin <yury.kylulin@intel.com>2020-07-24 16:13:57 +0000
commit0973d6613091c8ac51215ed48bfd7cef116d02d8 (patch)
treedb703c60634aef7549ed6d631bb47914a67664f0 /VNFs/DPPD-PROX/helper-scripts/rapid/start.sh
parent41f9380b67cd0b31de9c8ba84beeaab55723d534 (diff)
Fix execution in the Kubernetes environment
Due to the recent changes in the rapid scripts, Kubernetes environment need to be adjusted. Ready for test flag file for the runrapid script created during the container start. TUN device configuration added. Signed-off-by: Yury Kylulin <yury.kylulin@intel.com> Change-Id: I097aafbd1d1d102aa61b8b86842afcb2d6a51338
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid/start.sh')
-rwxr-xr-xVNFs/DPPD-PROX/helper-scripts/rapid/start.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/start.sh b/VNFs/DPPD-PROX/helper-scripts/rapid/start.sh
index 742983ec..7fbeedf8 100755
--- a/VNFs/DPPD-PROX/helper-scripts/rapid/start.sh
+++ b/VNFs/DPPD-PROX/helper-scripts/rapid/start.sh
@@ -17,10 +17,21 @@
function save_k8s_envs()
{
- printenv | grep "PCIDEVICE_INTEL_COM" > /opt/k8s_sriov_device_plugin_envs
+ printenv | grep "PCIDEVICE_INTEL_COM" > /opt/rapid/k8s_sriov_device_plugin_envs
+}
+
+function create_tun()
+{
+ mkdir -p /dev/net
+ mknod /dev/net/tun c 10 200
+ chmod 600 /dev/net/tun
}
save_k8s_envs
+create_tun
+
+# Ready for testing
+touch /opt/rapid/system_ready_for_rapid
# Start SSH server in background
/usr/sbin/sshd