Skip to content

Implement support for networkd-dispatcher

Hi,

Ubuntu uses systemd-networkd and is working towards supporting networkd-dispatcher instead of ifupdown. I'd like to propose this MR so that Debian can also benefit from this.

I noticed that the debian/ip-{up,down}.d scripts are simple enough that they can be easily shared with networkd-dispatcher. I'd like to suggest this MR, which simply installs the existing scripts into the right directories for networkd-dispatcher.

I did a quick test inside an Ubuntu VM with the new version of the package. I brought the network interface down and then up. Here's the log:

# ip link set enp5s0 down
Oct 14 18:45:25 ifupdown-bug1718227 systemd-networkd[286]: enp5s0: Link DOWN
Oct 14 18:45:25 ifupdown-bug1718227 systemd-networkd[286]: enp5s0: Lost carrier
...
Oct 14 18:45:25 ifupdown-bug1718227 systemd[1]: Reloading Postfix Mail Transport Agent (instance -).
Oct 14 18:45:25 ifupdown-bug1718227 postfix/postfix-script[5970]: refreshing the Postfix mail system
Oct 14 18:45:25 ifupdown-bug1718227 postfix/master[5888]: reload -- version 3.5.6, configuration /etc/postfix
Oct 14 18:45:25 ifupdown-bug1718227 systemd[1]: Reloaded Postfix Mail Transport Agent (instance -).
Oct 14 18:45:25 ifupdown-bug1718227 systemd[1]: Reloading Postfix Mail Transport Agent.
Oct 14 18:45:25 ifupdown-bug1718227 systemd[1]: Reloaded Postfix Mail Transport Agent.


# ip link set enp5s0 up
Oct 14 18:45:43 ifupdown-bug1718227 systemd-networkd[286]: enp5s0: Link UP
Oct 14 18:45:43 ifupdown-bug1718227 systemd-networkd[286]: enp5s0: Gained carrier
...
Oct 14 18:45:43 ifupdown-bug1718227 systemd[1]: Reloading Postfix Mail Transport Agent (instance -).
Oct 14 18:45:43 ifupdown-bug1718227 postfix/postfix-script[6005]: refreshing the Postfix mail system
Oct 14 18:45:43 ifupdown-bug1718227 postfix/master[5888]: reload -- version 3.5.6, configuration /etc/postfix
Oct 14 18:45:43 ifupdown-bug1718227 systemd[1]: Reloaded Postfix Mail Transport Agent (instance -).
Oct 14 18:45:43 ifupdown-bug1718227 systemd[1]: Reloading Postfix Mail Transport Agent.
Oct 14 18:45:43 ifupdown-bug1718227 systemd[1]: Reloaded Postfix Mail Transport Agent.

Merge request reports

Loading