Commit 696d9caa authored by Franco Fichtner's avatar Franco Fichtner

inc: fix call to undefined get_configured_pppoe_server_interfaces()

parent 6e1822a2
...@@ -1519,17 +1519,3 @@ function zte_simstate_to_string($state) { ...@@ -1519,17 +1519,3 @@ function zte_simstate_to_string($state) {
$string = "{$modes[$state]} State"; $string = "{$modes[$state]} State";
return $string; return $string;
} }
function get_configured_pppoe_server_interfaces() {
global $config;
$iflist = array();
if (isset($config['pppoes']['pppoe']) && is_array($config['pppoes']['pppoe'])) {
foreach($config['pppoes']['pppoe'] as $pppoe) {
if ($pppoe['mode'] == "server") {
$int = "poes". $pppoe['pppoeid'];
$iflist[$int] = strtoupper($int);
}
}
}
return $iflist;
}
...@@ -75,6 +75,22 @@ function get_pppoes_child_interfaces($ifpattern) { ...@@ -75,6 +75,22 @@ function get_pppoes_child_interfaces($ifpattern) {
} }
function get_configured_pppoe_server_interfaces()
{
global $config;
$iflist = array();
if (isset($config['pppoes']['pppoe'])) {
foreach($config['pppoes']['pppoe'] as $pppoe) {
if ($pppoe['mode'] == 'server') {
$int = 'poes'. $pppoe['pppoeid'];
$iflist[$int] = strtoupper($int);
}
}
}
return $iflist;
}
/* implement ipv6 route advertising deamon */ /* implement ipv6 route advertising deamon */
function services_radvd_configure($blacklist = array()) function services_radvd_configure($blacklist = array())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment