From: Waqqas Jabbar <waqqas.jabbar@emumba.com>
To: users@dpdk.org
Subject: [dpdk-users] Using devbind.py for automated testing
Date: Wed, 29 Jan 2020 15:55:55 +0500 [thread overview]
Message-ID: <CAKd7n16KhOA7B9ec9YDv63e8jkUvGXT53+MO+WfSyhWgzmsvUA@mail.gmail.com> (raw)
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
next reply other threads:[~2020-01-29 10:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-29 10:55 Waqqas Jabbar [this message]
2020-01-30 23:13 ` David Christensen
2020-01-31 5:02 ` Waqqas Jabbar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKd7n16KhOA7B9ec9YDv63e8jkUvGXT53+MO+WfSyhWgzmsvUA@mail.gmail.com \
--to=waqqas.jabbar@emumba.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).