From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 70320A0531 for ; Wed, 29 Jan 2020 11:56:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B9CEF1BFB6; Wed, 29 Jan 2020 11:56:08 +0100 (CET) Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) by dpdk.org (Postfix) with ESMTP id 0D2C41BFB5 for ; Wed, 29 Jan 2020 11:56:07 +0100 (CET) Received: by mail-qt1-f196.google.com with SMTP id w8so12825292qts.11 for ; Wed, 29 Jan 2020 02:56:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emumba-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=9PxYO7kb9pb0wwqTSsezdl1YabAaSnqLrIz0yk5+HUg=; b=cxNa3WVOy/U9T7ug4UNZSL1G747anPdVp8DAzkBtrXzVF5wDk+IzDI6e3X5uIEUpA6 IjKhR47wDFQY6d2liRQa/vW/UnWPXhm43NdPUVaJ/PJi/cHyMsF2rvqxazpa1+NsqVuE DxRpGPtViNqkBL8y6x8661weLVGRDHO7MTv3J1zmZyDgshKGypSg/TgQQuyI3BdGWGwG 3RsDh05d0v5H/dX+2Y4uexRIXzIyPbpHp/9hFtdB2Kfa254A78q/fYXhU9eWaIQDKWjF yEJr0SAiX8hrBSOD8Z8vWj7DdKZZywty0NjsGRPdUHjjwmgoA6+X50saS4hDuVBRds0m EBMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9PxYO7kb9pb0wwqTSsezdl1YabAaSnqLrIz0yk5+HUg=; b=JsbjvQ/H0/IRElFx6SdJvfl+a/ZPYJ2oFW3dTfN/ucnBNHYRfinah8CakBD+Y3nL2A O0in/2XmqiDRKkGmm5vyixb/LoFlBB7RP4iC3Sf5gFujxjW9vBzFNZYvkxoNvifFQ2ps sYBS/lu2fPLhtoveDUNFZmhv3KIIrjmhK6QfHKXas1HhBUH/XZtII+DsKC0Mucs4Ex10 pJZtyxXHARju2SGyRrYyra30YbyMf6Gl4x5mn/KDkMnNrrooNEQ9nkQWc4YXH4LRDyNb NrY/riX4kEOwtBy2iXZN5vfbtpXXt/t6eT85y08Ue8nvQFuWmiiyLEtTkPYo7p+QEnOQ jZ2w== X-Gm-Message-State: APjAAAX3t6DCoiJiXpHf7EyRrxeRu26znnjFW/dJ7KKAalQKpInt7as6 5KW82fIOUUHbWzk/l/CFg6kfEoNvLBGYCDUQ3tm9dprQml4R481n X-Google-Smtp-Source: APXvYqwqc4GYUJByflthy+BdyhZmMidlJAfnjLSKJ+mmSUwryEGYYJaIsdzkku6JHt/zBvlYXfaboVxZfsVwXO/Zd5k= X-Received: by 2002:ac8:7314:: with SMTP id x20mr25302463qto.316.1580295366151; Wed, 29 Jan 2020 02:56:06 -0800 (PST) MIME-Version: 1.0 From: Waqqas Jabbar Date: Wed, 29 Jan 2020 15:55:55 +0500 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-users] Using devbind.py for automated testing X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" 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