Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions modules/test/protocol/python/src/protocol_bacnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ def validate_bacnet_source(self, object_id, device_hw_addr):
capture_file = os.path.join(self._captures_dir, self._capture_file)
packets = self.get_bacnet_packets(capture_file, object_id)
valid = None
# If no packets are found in protocol.pcap
if not packets:
LOGGER.debug(f'No BACnet packets found for object id {object_id}')
for packet in packets:
if object_id in packet['_source']['layers']['bacapp.instance_number']:
if device_hw_addr.lower() in packet['_source']['layers']['eth.src']:
Expand Down
Loading