This commit is contained in:
Robin Müller 2022-09-09 14:30:15 +02:00
parent b1b19f9cba
commit af8dccb56b
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -4,16 +4,21 @@ from pathlib import Path
from typing import Optional, Sequence from typing import Optional, Sequence
from spacepackets import SpacePacket, SpacePacketHeader, PacketTypes from spacepackets import SpacePacket, SpacePacketHeader, PacketTypes
from spacepackets.cfdp import TransmissionModes, PduType, DirectiveType from spacepackets.cfdp import (
from spacepackets.cfdp.pdu.helper import GenericPduPacket, PduHolder, PduFactory TransmissionModes,
from spacepackets.util import UnsignedByteField PduType,
DirectiveType,
GenericPduPacket,
PduHolder,
PduFactory,
)
from tmtccmd.cfdp import ( from tmtccmd.cfdp import (
RemoteEntityCfgTable, RemoteEntityCfgTable,
HostFilestore,
RemoteEntityCfg, RemoteEntityCfg,
LocalEntityCfg, LocalEntityCfg,
CfdpUserBase, CfdpUserBase,
) )
from spacepackets.util import UnsignedByteField
from tmtccmd.cfdp.handler import SourceHandler, DestHandler from tmtccmd.cfdp.handler import SourceHandler, DestHandler
from tmtccmd.cfdp.request import PutRequest, PutRequestCfg from tmtccmd.cfdp.request import PutRequest, PutRequestCfg
from tmtccmd.logging import get_current_time_string from tmtccmd.logging import get_current_time_string
@ -110,8 +115,6 @@ class CfdpHandler:
seq_cnt_provider: ProvidesSeqCount, seq_cnt_provider: ProvidesSeqCount,
remote_cfg: Sequence[RemoteEntityCfg], remote_cfg: Sequence[RemoteEntityCfg],
): ):
vfs = HostFilestore()
super().__init__(vfs)
self.dest_id = UnsignedByteField(EXAMPLE_APID, 2) self.dest_id = UnsignedByteField(EXAMPLE_APID, 2)
self.remote_cfg_table = RemoteEntityCfgTable() self.remote_cfg_table = RemoteEntityCfgTable()
self.remote_cfg_table.add_remote_entities(remote_cfg) self.remote_cfg_table.add_remote_entities(remote_cfg)