mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
routing, fix typo
This commit is contained in:
parent
b72988299f
commit
ecb715c338
@ -109,7 +109,7 @@ class InterfaceController extends ApiControllerBase
|
||||
public function getRoutesAction()
|
||||
{
|
||||
$backend = new Backend();
|
||||
if (empty($this->request->get('resolve', null))) {
|
||||
if (empty($this->request->get('resolve'))) {
|
||||
$response = $backend->configdpRun("interface routes list -n json");
|
||||
} else {
|
||||
$response = $backend->configdpRun("interface routes list json");
|
||||
@ -120,9 +120,9 @@ class InterfaceController extends ApiControllerBase
|
||||
$intfmap = $this->getInterfaceNames();
|
||||
foreach ($routingtable as &$routingentry) {
|
||||
if (array_key_exists($routingentry['netif'], $intfmap)) {
|
||||
$ndpentry['intf_description'] = $intfmap[$routingentry['netif']];
|
||||
$routingentry['intf_description'] = $intfmap[$routingentry['netif']];
|
||||
} else {
|
||||
$ndpentry['intf_description'] = "";
|
||||
$routingentry['intf_description'] = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user