tiiuae / mesh_com

ROS node for Mesh Network configuration
BSD 3-Clause "New" or "Revised" License
16 stars 17 forks source link

debug command and SLAAC test #356

Closed DaniilTroshkovTII closed 10 months ago

DaniilTroshkovTII commented 10 months ago

Hi! In this PR I introduce DEBUG COMMAND which can run any subprocess via comms_controller requests. It is disabled by default. MDM agent requests MDM server for debug_conf and store it to /opt/debug_config.json I will create PR for server side soon. This config looks like:

{"version":0,"payload":{"api_version":1,"role":"sleeve","debug_conf":[{"debug_mode":"disabled","rsyslog_addr":"172.25.26.140"}]}}

or

{"version":0,"payload":{"api_version":1,"role":"sleeve","debug_conf":[{"debug_mode":"enabled","rsyslog_addr":"172.25.26.140"}]}}

If debug_mode is enabled it is possible to use DEBUG COMMAND. I have added cli example accordingly. I also use this DEBUG COMMAND to test SLAAC in debug_tests folder.

DaniilTroshkovTII commented 10 months ago

FYI server side https://github.com/tiiuae/mdm-server/pull/5