|
@@ -29,7 +29,8 @@ class ONURecoverCommand extends ContainerAwareCommand
|
|
|
->setHelp('Set the status of the execution of the script against the olt')
|
|
|
->addArgument('onuid', InputArgument::REQUIRED, 'Onu ID')
|
|
|
->addArgument('file', InputArgument::REQUIRED, 'File log')
|
|
|
- ->addArgument('status', InputArgument::REQUIRED, 'Status 0 (OK), 1 (ERROR) other value (PENDING)');
|
|
|
+ ->addArgument('status', InputArgument::REQUIRED, 'Status 0 (OK), 1 (ERROR) other value (PENDING)')
|
|
|
+ ->addArgument('forceRemove', InputArgument::OPTIONAL, 'Force remove when the OLT still with error');
|
|
|
}
|
|
|
|
|
|
protected function execute(InputInterface $input, OutputInterface $output)
|
|
@@ -39,8 +40,9 @@ class ONURecoverCommand extends ContainerAwareCommand
|
|
|
$onuId = $input->getArgument('onuid');
|
|
|
$file = $input->getArgument('file');
|
|
|
$status = $input->getArgument('status');
|
|
|
+ $forceRemove = $input->getArgument('forceRemove');
|
|
|
|
|
|
- if($status == 1){
|
|
|
+ if($status == 1 && !!!$forceRemove){
|
|
|
$filters = [];
|
|
|
//disable filters to find the onu deleted
|
|
|
foreach ($em->getFilters()->getEnabledFilters() as $filterName => $filter) {
|