ifupdown-ng / ifupdown-ng

flexible ifup/ifdown implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

taking down dependent interface also takes down its parent interface

mpolanski opened this issue · comments

I'm using ifupdown-ng 0.10.0-r2

With the following config

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto wg0
iface wg0
	use wireguard
	address 10.0.0.1/24
	requires eth0

issuing ifdown wg0 also takes down eth0. I believe this shouldn't happen.

I agree, it should not. As the eth0 is explicitly brought up, it should have a refcount of 2 here.