12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- if (ubRouting::get('action') == 'herd') {
- if ($alterconf['PON_ENABLED']) {
- if (ubRouting::checkGet('oltid')) {
-
- $oltId = ubRouting::get('oltid', 'int');
- $compressorProcess = new StarDust(ONUSigCompressor::PID);
- if ($compressorProcess->notRunning()) {
- $pony = new PONizer();
- $pony->pollOltSignal($oltId);
- die('OK:HERD');
- } else {
- log_register('PON HERD OLT ['.$oltId.'] SKIPPED DUE COMPRESSOR RUNNING');
- die('SKIPPED:HERD');
- }
- } else {
- die('ERROR:NO_OLTID');
- }
- } else {
- die('ERROR:PON_DISABLED');
- }
- }
|