Add SSDP boefje to find devices inside of a network #3594
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Add a SSDP boefje that scans for machines / services on local networks. A perfect example of a boefje that might need #3299 as a feature.
Demo
QA notes
To simulate a SDDP server I did the following:
docker compose exec -it boefje bash
pip install ssdpy
python3 -c 'from ssdpy import SSDPServer;SSDPServer("cynalytics-server",proto="ipv4", device_type="my_device_type",location="http://145.131.253.241:8000/en/cyn/").serve_forever()'
to start a sddp server inside of the boefje container.Additional note
Code inside boefjes/boefjes/plugins/kat_ssdp/main.py needs to have the import statement moved to the top of the file, but because of #3582 this is not possible.
Code Checklist
.env
changes files if required and changed the.env-dist
accordingly.Checklist for code reviewers:
Copy-paste the checklist from the docs/source/templates folder into your comment.
Checklist for QA:
Copy-paste the checklist from the docs/source/templates folder into your comment.