Skip to content

Commit

Permalink
Fix find parent interface
Browse files Browse the repository at this point in the history
  • Loading branch information
meklis committed May 12, 2024
1 parent bd2317c commit 42aa726
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Modules/CData/CDataAbstractModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,18 @@ protected function parseInterface($input)
switch (count($m)) {
case 7:
$response['name'] .= ":{$m[5]}";
$response['uni'] = (int)$m[6];
$response['_uni'] = (int)$m[6];
$response['_onu'] = (int)$m[5];
$response['type'] = 'UNI';
$response['id'] = (int)$m[5] + $response['id'];
$response['parent'] = $response['id'];
break;
case 6:
$response['name'] .= ":{$m[5]}";
$response['_onu'] = (int)$m[5];
$response['type'] = 'ONU';
$response['id'] = (int)$m[5] + $response['id'];
$response['parent'] = $response['id'];
break;
}
return $response;
Expand Down

0 comments on commit 42aa726

Please sign in to comment.