Commit 1159b089 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

routing, fix typo

(cherry picked from commit ecb715c3)
parent 484c2001
...@@ -109,7 +109,7 @@ class InterfaceController extends ApiControllerBase ...@@ -109,7 +109,7 @@ class InterfaceController extends ApiControllerBase
public function getRoutesAction() public function getRoutesAction()
{ {
$backend = new Backend(); $backend = new Backend();
if (empty($this->request->get('resolve', null))) { if (empty($this->request->get('resolve'))) {
$response = $backend->configdpRun("interface routes list -n json"); $response = $backend->configdpRun("interface routes list -n json");
} else { } else {
$response = $backend->configdpRun("interface routes list json"); $response = $backend->configdpRun("interface routes list json");
...@@ -120,9 +120,9 @@ class InterfaceController extends ApiControllerBase ...@@ -120,9 +120,9 @@ class InterfaceController extends ApiControllerBase
$intfmap = $this->getInterfaceNames(); $intfmap = $this->getInterfaceNames();
foreach ($routingtable as &$routingentry) { foreach ($routingtable as &$routingentry) {
if (array_key_exists($routingentry['netif'], $intfmap)) { if (array_key_exists($routingentry['netif'], $intfmap)) {
$ndpentry['intf_description'] = $intfmap[$routingentry['netif']]; $routingentry['intf_description'] = $intfmap[$routingentry['netif']];
} else { } else {
$ndpentry['intf_description'] = ""; $routingentry['intf_description'] = "";
} }
} }
} }
......
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