You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
i am wondering could we directly read the results value from the register to extern python program for a further evaluation?
i notice that in SwitchTree, you counted the number of detected attacks and normal packets based on the port respectively. However, when i prefer to use these values to draw a result figure, i have no idea to input these value directly into the python program. Or can i only manually record them and input into the python?
Thank you~~
Best regards,
Louisa
The text was updated successfully, but these errors were encountered:
Switchtree uses CLI for control plane. For controlling it using python and possibly reading statistics, you may check p4runtime examples . It shows an example to use python scripts such as mycontroller.py.
For that one will have to make gRPC work as well.
Another way could be to launch the CLI command using a python script and parse the output.
Hi,
i am wondering could we directly read the results value from the register to extern python program for a further evaluation?
i notice that in SwitchTree, you counted the number of detected attacks and normal packets based on the port respectively. However, when i prefer to use these values to draw a result figure, i have no idea to input these value directly into the python program. Or can i only manually record them and input into the python?
Thank you~~
Best regards,
Louisa
The text was updated successfully, but these errors were encountered: