[dpdk-users] Using devbind.py for automated testing

Waqqas Jabbar waqqas.jabbar at emumba.com
Wed Jan 29 11:55:55 CET 2020


Hi

I am new here, so please bear with me. I am trying to automate the
process of bind/unbinding NICs between kernel and DPDK for automated
testing.

The devbind.py script is not very friendly to script. I have to run
the status command, parse the output (using regex) and then run the
script with the correct parameters to bind/unbind and parse output
again to verify the results.

My idea is to run the devbind.py as a REST API server and expose the
devices and operations through JSON input and output. I can get the
list of devices, using the GET request and bind/unbind it using the
PUT request on a device. The output would a JSON object with an
updated result. Automating it would be easy, leading to a more robust
solution.

My questions are:
- Has anyone developed similar functionality? if yes, please share its details.
- Any better way to achieve the same functionality?


Thanks in advance
Waqqas


More information about the users mailing list