Leonardo Mendes ca412b85c2 Add more IPSec info to the collect tool
This commit adds more IPSec info to the collect tool to help
debugging/troubleshooting IPsec related issues. Now, the
certificates loaded in the ipsec daemon and the content of
the certificates are collected by the tool.

At the moment, the following ipsec data are collected:
 - swanctl --list-certs
 - swanctl --list-conns
 - swanctl --list-sas
 - ip -s xfrm policy
 - ip -s xfrm state
 - The content of the certificates (var/extra/certs/etc/swanctl)

Test Plan:
PASS: Run 'collect --all', IPSec information collected correctly
      under var/extra.

Story: 2010940
Task: 51472

Change-Id: Icd99e495153a52d78683544f5e7ac36f1544f85a
Signed-off-by: Leonardo Mendes <Leonardo.MendesSantana@windriver.com>
2024-12-13 11:59:08 -03:00
..