bundles/systemd-networkd: support bond and bridge interfaces
This commit is contained in:
parent
633ccb97fd
commit
f2a0f0b46a
7 changed files with 81 additions and 3 deletions
14
bundles/systemd-networkd/files/template-iface-dhcp.network
Normal file
14
bundles/systemd-networkd/files/template-iface-dhcp.network
Normal file
|
@ -0,0 +1,14 @@
|
|||
<%
|
||||
from ipaddress import ip_network
|
||||
%>\
|
||||
[Match]
|
||||
Name=${interface}
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
||||
IPv6AcceptRA=yes
|
||||
UseHostname=no
|
||||
|
||||
% if config.get('forwarding', False):
|
||||
IPForward=yes
|
||||
%endif
|
Loading…
Add table
Add a link
Reference in a new issue