fiberhome: add remove onu option
Signed-off-by: Rodrigo Bertoldo de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
1 parent
cccd68b3b0
commit
00c0d3473d
1 file changed
+19
@@ -401,6 +401,25 @@ class FiberhomeManager {
|
|||||||
this.executarComandoTL1(comandosDetalhados[2])
|
this.executarComandoTL1(comandosDetalhados[2])
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// LOG COMPLETO DO LST-OMDDM PARA DEBUG - FORÇAR CONSOLE OUTPUT
|
||||||
|
if (resultadoDDM.success && resultadoDDM.data) {
|
||||||
|
const separador = '='.repeat(80);
|
||||||
|
console.log('\n' + separador);
|
||||||
|
console.log('LST-OMDDM RESPOSTA COMPLETA');
|
||||||
|
console.log(separador);
|
||||||
|
console.log('Comando: ' + comandosDetalhados[1]);
|
||||||
|
console.log('Resposta RAW:');
|
||||||
|
console.log(resultadoDDM.data);
|
||||||
|
console.log(separador + '\n');
|
||||||
|
|
||||||
|
// Também no logger para arquivo
|
||||||
|
this.logger.info('==================== LST-OMDDM RESPOSTA COMPLETA ====================');
|
||||||
|
this.logger.info('Comando: ' + comandosDetalhados[1]);
|
||||||
|
this.logger.info('Resposta RAW:');
|
||||||
|
this.logger.info(resultadoDDM.data);
|
||||||
|
this.logger.info('====================================================================');
|
||||||
|
}
|
||||||
|
|
||||||
// Adicionar dados coletados
|
// Adicionar dados coletados
|
||||||
onuEncontrada.estadoGeral = resultadoEstado.success ? resultadoEstado.data : null;
|
onuEncontrada.estadoGeral = resultadoEstado.success ? resultadoEstado.data : null;
|
||||||
onuEncontrada.detalhes = resultadoDDM.success ? resultadoDDM.data : null;
|
onuEncontrada.detalhes = resultadoDDM.success ? resultadoDDM.data : null;
|
||||||
|
|||||||
Reference in new issue
Block a user