new hypervisor wip

This commit is contained in:
2023-08-09 18:38:34 +10:00
parent 590a50cd1a
commit 5007f0b68e
14 changed files with 233 additions and 52 deletions

View File

@ -0,0 +1,9 @@
[NetDev]
Name=br0
Kind=bridge
[Bridge]
DefaultPVID=none
VLANFiltering={{ item.vlan_filtering }}
VLANProtocol=802.1q
STP={{ item.stp }}

View File

@ -0,0 +1,6 @@
[Match]
PermanentMACAddress={{ item.mac_address }}
[Link]
MACAddressPolicy=permanent
MACAddress={{ item.mac_address }}
Name={{ item.name | regex_replace('^[0-9]*-', '') | regex_replace('\.link', '') }}

View File

@ -0,0 +1,12 @@
[Match]
MACAddress={{ item.mac_address }}
[Link]
ARP={{ item.arp }}
[Network]
DHCP=no
if item.bond
Bond={{ item.bond }}
if item.bridge
Bridge={{ item.bridge }}