ansible-edda/playbooks/filesystem/common/etc/systemd/system/connect-pod-service@.service

8 lines
200 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Connect %i to root bridge
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/sh -c '/usr/sbin/ifdown --ignore-errors veth-%i || /usr/bin/true ; /usr/sbin/ifup veth-%i'