Project

General

Profile

Actions

Bug #17055

open

Create Lagg

Added by FABIANO BATISTA 1 day ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
LAGG Interfaces
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.9.0
Affected Architecture:
amd64

Description

Error create lagg

Aug 25 13:48:32 pfSense php-fpm448: ERROR Failed to configure interface : Could not create temporary interface

I managed to create it using the commands below.

global $config;

// Garante que a estrutura de LAGGs existe no XML
if (!is_array($config['laggs'])) {
$config['laggs'] = array('lagg' => array());
} elseif (!is_array($config['laggs']['lagg'])) {
$config['laggs']['lagg'] = array();
}

// Monta o array do LAGG manualmente (bypass do erro web)
$novo_lagg = array();
$novo_lagg['members'] = "igb2,igb3";
$novo_lagg['descr'] = "LAGG";
$novo_lagg['laggif'] = "lagg0";
$novo_lagg['proto'] = "lacp";

// Injeta e salva
$config['laggs']['lagg'][] = $novo_lagg;
write_config("Criacao manual de lagg0 para contornar bug da GUI no 2.9.0");
interface_lagg_configure($novo_lagg);

print_r("\nLAGG lagg0 injetado com sucesso no config.xml!\n");
exec;

No data to display

Actions

Also available in: Atom