[systemd-devel] systemd-networkd doesn't delete netdev when parent interface is deleted
hello at andreborie.name
hello at andreborie.name
Fri Aug 21 04:08:13 PDT 2015
What workaround do you suggest in the meantime ?
I'm currently using a very ugly hack which is an oneshot service that
runs "ip tunnel del" right before the PPP service starts (and ignores
eventual errors); is there a better way, possibly without touching the
actual PPP service file (I'd like the tunnel to be self-contained in its
netdev files).
# /etc/systemd/system/ppp at orange.service
[Unit]
Description=PPP link to %I
After=network.target tunnel-delete.service
Wants=tunnel-delete.service
[Service]
Type=forking
PIDFile=/run/ppp-%i.pid
ExecStart=/usr/sbin/pppd call %I linkname %i updetach
SuccessExitStatus=5
Restart=on-failure
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/tunnel-delete.service
[Unit]
Description=Delete remaining tunnel
BindsTo=ppp at orange.service
[Service]
Type=oneshot
ExecStartPre=-/bin/ip link set down dev heipv6 # horror starts here
ExecStart=-/bin/ip tunnel del heipv6 # more nightmares
On 2015-08-21 05:10, Susant Sahani wrote:
> yes right now we don't support deletion dynamically. Probably we would
> do that in future doing via networkctl.
> Susant
More information about the systemd-devel
mailing list