summaryrefslogtreecommitdiffstats
path: root/ansible/roles/gsm-tester/files
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-10-26 14:21:45 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-10-26 19:25:53 +0000
commitcee37b80040ad4847f030f88f37df1312a5d7638 (patch)
tree0f4458b04b9af880fb17af033b277a25915184fc /ansible/roles/gsm-tester/files
parent6fdb3ef090d8d29236369476b47feee0cdcc3024 (diff)
ansible: ogt: Deploy osmo-gsm-tester_netns_exec.sh
Diffstat (limited to 'ansible/roles/gsm-tester/files')
-rwxr-xr-xansible/roles/gsm-tester/files/osmo-gsm-tester_netns_exec.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/gsm-tester/files/osmo-gsm-tester_netns_exec.sh b/ansible/roles/gsm-tester/files/osmo-gsm-tester_netns_exec.sh
new file mode 100755
index 0000000..336b746
--- /dev/null
+++ b/ansible/roles/gsm-tester/files/osmo-gsm-tester_netns_exec.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+netns="$1"
+shift
+#TODO: Later on I may want to call myself with specific ENV and calling sudo in order to run inside the netns but with dropped privileges
+ip netns exec $netns "$@"