Revert "Add virbr to list"

This reverts commit 5ac98519b5.
This commit is contained in:
SimonFair
2025-06-08 09:42:48 +01:00
parent b8144bb85e
commit ff0b8846e7

View File

@@ -1245,7 +1245,7 @@ class Array2XML {
function getValidNetworks() {
global $lv,$libvirt_running;
$arrValidNetworks = [];
exec("ls --indicator-style=none /sys/class/net | grep -Po '^((vir)?br|bond|eth|wlan)[0-9]+(\.[0-9]+)?'",$arrBridges);
exec("ls --indicator-style=none /sys/class/net | grep -Po '^(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