summaryrefslogtreecommitdiff
path: root/roles/linux-ns/files/systemd/my-netns@.service
diff options
context:
space:
mode:
authoruvok cheetah2025-02-09 17:57:14 +0100
committeruvok cheetah2025-02-09 17:57:14 +0100
commita3ee42d1dde090c5baad512ff8707f7e2c068433 (patch)
treea619ef2f51c548a235b188cac19c7cf337686424 /roles/linux-ns/files/systemd/my-netns@.service
parentbb989a2148686d1eb4f49b5aa2597c5162436196 (diff)
LintingHEADmaster
Diffstat (limited to 'roles/linux-ns/files/systemd/my-netns@.service')
-rw-r--r--roles/linux-ns/files/systemd/my-netns@.service30
1 files changed, 0 insertions, 30 deletions
diff --git a/roles/linux-ns/files/systemd/my-netns@.service b/roles/linux-ns/files/systemd/my-netns@.service
deleted file mode 100644
index c9735b7..0000000
--- a/roles/linux-ns/files/systemd/my-netns@.service
+++ /dev/null
@@ -1,30 +0,0 @@
-[Unit]
-Description=Named network namespace %I
-Documentation=https://github.com/Jamesits/systemd-named-netns
-
-After=network-pre.target
-Before=network.target network-online.target
-
-[Install]
-WantedBy=network-online.target
-WantedBy=multi-user.target
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-
-# precaution
-ExecStartPre=-/usr/bin/env ip netns delete %I
-
-# set up netns and bind it to this service
-ExecStart=/usr/bin/flock --no-fork -- /var/run/netns.lock /usr/bin/env ip netns add %I
-ExecStart=/usr/bin/env ip link add veth%I type veth peer vethpeer%I netns %I
-ExecStart=/usr/bin/env ip link set veth%I up
-ExecStart=/usr/bin/env ip netns exec %I ip link set vethpeer%I name eth0
-ExecStart=/usr/bin/env ip netns exec %I ip link set lo up
-ExecStart=/usr/bin/env ip netns exec %I ip link set eth0 up
-
-# remove the netns
-ExecStop=/usr/bin/env ip link del veth%I
-# type veth peer vethpeer%I netns %I
-ExecStop=/usr/bin/env ip netns delete %I