|
@@ -76,6 +76,8 @@ class AutodiscoveryONUCommand extends ContainerAwareCommand
|
|
|
if(is_null($nap)) {$output->writeln("NAP with slot: {$slot} and link: {$link} in OLT id: {$oltid} doesn't exist - continue");continue;}
|
|
|
|
|
|
$modelName = "FiberHome-{$model}";
|
|
|
+ if($model == 'HG260') $modelName = "VSolution-HG323";
|
|
|
+
|
|
|
$onuModel = $em->getRepository(ONUModel::class)->findOneByName($modelName);
|
|
|
if(is_null($onuModel)) {$output->writeln("ONU MODEL ({$modelName}) doesn't exist - continue");continue;}
|
|
|
|
|
@@ -83,10 +85,7 @@ class AutodiscoveryONUCommand extends ContainerAwareCommand
|
|
|
$onu = $em->getRepository(ONU::class)->findOneByPonSerialNumber($psn);
|
|
|
if($onu) {$output->writeln("ONU ({$psn}) exist - continue");continue;}
|
|
|
|
|
|
- $onu = $em->getRepository(ONU::class)->findOneBy(array('olt' => $olt, 'nap' => $nap, 'position' => $index));
|
|
|
- if($onu) {$output->writeln("ONU({$onu->getPonSerialNumber()}) in OLT({$olt->getName()}) > NAP({$nap->getName()} {$slot}/{$link}) > Position ($index) exist - continue");continue;}
|
|
|
-
|
|
|
- $output->writeln("OK with PSN - OLT - NAP - POSITION - PROFILE, so we create the ONU");
|
|
|
+ $output->writeln("OK with PSN - OLT - NAP - PROFILE, so we create the ONU");
|
|
|
|
|
|
$newOnu = new ONU();
|
|
|
$newOnu->setPonSerialNumber($psn);
|