mirror of
https://github.com/unraid/webgui.git
synced 2026-03-02 22:30:07 -06:00
Re-introduce macvlan / ipvlan selection when bridge is enabled
This commit is contained in:
@@ -661,7 +661,7 @@
|
||||
$netmodel = $nic['model'] ?: 'virtio-net';
|
||||
|
||||
$net_res =$this->libvirt_get_net_res($this->conn, $nic['network']);
|
||||
$vhost = file_exists("/boot/config/network.cfg") && exec("grep -Po '^BRNICS\\[0\\]=\"\\K[^\"]+' /boot/config/network.cfg")=='';
|
||||
$vhost = !file_exists('/sys/class/net/br0');
|
||||
if ($vhost) {
|
||||
exec("ip -br a|grep -Po '^vhost[0-9][^@]*'",$br);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user