mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 00:59:48 -06:00
Add virbr to list
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user