eive-tmtc/eive_tmtc/cfdp/fault_handler.py

21 lines
671 B
Python
Raw Normal View History

2023-09-08 17:49:59 +02:00
import logging
2023-08-17 11:34:54 +02:00
from spacepackets.cfdp import ConditionCode
2023-08-17 11:33:42 +02:00
from tmtccmd.cfdp.mib import DefaultFaultHandlerBase
2023-09-08 17:49:59 +02:00
_LOGGER = logging.getLogger(__name__)
2023-08-17 11:33:42 +02:00
class EiveCfdpFaultHandler(DefaultFaultHandlerBase):
def notice_of_suspension_cb(self, cond: ConditionCode):
2023-09-08 17:49:59 +02:00
_LOGGER.info(f"Received notice of suspension: {cond!r}")
2023-08-17 11:33:42 +02:00
def notice_of_cancellation_cb(self, cond: ConditionCode):
2023-09-08 17:49:59 +02:00
_LOGGER.info(f"Received notice of cancellation: {cond!r}")
2023-08-17 11:33:42 +02:00
def abandoned_cb(self, cond: ConditionCode):
2023-09-08 17:49:59 +02:00
_LOGGER.info(f"Abandoned transaction: {cond!r}")
2023-08-17 11:33:42 +02:00
def ignore_cb(self, cond: ConditionCode):
2023-09-08 17:49:59 +02:00
_LOGGER.info(f"Ignored transaction: {cond!r}")