mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
Wireguard / OpenVPN [client] - handle disabled carp vhid's by initialising to 'DISABLED' (same as 9ff64a3e41)
This commit is contained in:
parent
5b0b4139b6
commit
1fe104dce6
@ -43,6 +43,7 @@ function get_vhid_status()
|
||||
foreach ((new OPNsense\Interfaces\Vip())->vip->iterateItems() as $id => $item) {
|
||||
if ($item->mode == 'carp') {
|
||||
$uuids[(string)$item->vhid] = $id;
|
||||
$vhids[$id] = ['status' => 'DISABLED', 'vhid' => (string)$item->vhid];
|
||||
}
|
||||
}
|
||||
foreach (legacy_interfaces_details() as $ifdata) {
|
||||
|
||||
@ -100,6 +100,7 @@ function get_vhid_status()
|
||||
foreach ((new OPNsense\Interfaces\Vip())->vip->iterateItems() as $id => $item) {
|
||||
if ($item->mode == 'carp') {
|
||||
$uuids[(string)$item->vhid] = $id;
|
||||
$vhids[$id] = 'DISABLED';
|
||||
}
|
||||
}
|
||||
foreach (legacy_interfaces_details() as $ifdata) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user