From 5ac98519b5c8cf79ecaa35f5acaab9aa8fcd0d43 Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Sat, 7 Jun 2025 08:25:56 +0100 Subject: [PATCH] Add virbr to list --- emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php b/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php index 92f136c0a..a09b9fc73 100644 --- a/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php +++ b/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php @@ -1245,7 +1245,7 @@ class Array2XML { function getValidNetworks() { global $lv,$libvirt_running; $arrValidNetworks = []; - exec("ls --indicator-style=none /sys/class/net | grep -Po '^(br|bond|eth|wlan)[0-9]+(\.[0-9]+)?'",$arrBridges); + exec("ls --indicator-style=none /sys/class/net | grep -Po '^((vir)?br|bond|eth|wlan)[0-9]+(\.[0-9]+)?'",$arrBridges); // add 'virbr0' as default first choice array_unshift($arrBridges, 'virbr0'); // remove redundant references of bridge and bond interfaces