Cole Walker 916f9da112 [PTP] Update cgu parser for Logan Beach NIC
Intel Logan Beach NICs have additional fields in the cgu output,
resulting in failures when converting it into a dict. Updated the logic
for cgu_output_to_dict() to find the start and end of the "input" table.
Once the start and end lines of the table are identified, then the other
required fields can be located based on the known offset from the table.

This also allows any future lines added to the table to handled without
requiring additional code changes.

Updated the unit tests to cover both the Logan Beach and Westport Channel
cgu output formats.

Test plan:
PASS: Unit tests passing
PASS: Build notificationservice-base image and test on both NIC
types.

Story: 2010270
Task: 46870

Signed-off-by: Cole Walker <cole.walker@windriver.com>
Change-Id: Ib6716f38ea3c64a68e7162bb5d4f2154fa399a8c
2022-11-17 16:33:33 -05:00
2022-05-31 14:33:17 +00:00
2021-03-11 13:11:54 -05:00
2021-01-19 18:53:24 +00:00
2022-10-28 20:15:14 +00:00
Description
StarlingX PTP Notification App
4.5 MiB
Languages
Python 97.2%
Makefile 1.1%
Dockerfile 0.5%
Shell 0.4%
Smarty 0.3%
Other 0.4%