get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/81406/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 81406,
    "url": "http://patchwork.dpdk.org/api/patches/81406/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dts/patch/1603128651-18576-1-git-send-email-lihongx.ma@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patchwork.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<1603128651-18576-1-git-send-email-lihongx.ma@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/1603128651-18576-1-git-send-email-lihongx.ma@intel.com",
    "date": "2020-10-19T17:30:51",
    "name": "[V1] framework: add the check of scapy version",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "7074605d350682e3842220e31ca94ba5f68f693f",
    "submitter": {
        "id": 1641,
        "url": "http://patchwork.dpdk.org/api/people/1641/?format=api",
        "name": "Ma, LihongX",
        "email": "lihongx.ma@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dts/patch/1603128651-18576-1-git-send-email-lihongx.ma@intel.com/mbox/",
    "series": [
        {
            "id": 13113,
            "url": "http://patchwork.dpdk.org/api/series/13113/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=13113",
            "date": "2020-10-19T17:30:51",
            "name": "[V1] framework: add the check of scapy version",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/13113/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/81406/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/81406/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 54BA5A04DC;\n\tTue, 20 Oct 2020 03:05:34 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 13464BC0A;\n\tTue, 20 Oct 2020 03:05:33 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by dpdk.org (Postfix) with ESMTP id 19EC6BAEC\n for <dts@dpdk.org>; Tue, 20 Oct 2020 03:05:30 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Oct 2020 18:05:27 -0700",
            "from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.174])\n by fmsmga005.fm.intel.com with ESMTP; 19 Oct 2020 18:05:26 -0700"
        ],
        "IronPort-SDR": [
            "\n RdRC+HhuOY0ek2kAKZqHtFO9WMfjwF1nR3A0/5hatLtUmHYdyOod3nvUd4VfEzvugoezKlaS/T\n DFewWleJG3RQ==",
            "\n vN1lQ1fB+34XHArC/7gaaSmgYGMb1+W3eSjnsN7OQM3u2zsRrMS2sMP5Ly4j9koTNEdLDOgidF\n 3jClsvrGl5RA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9779\"; a=\"154073067\"",
            "E=Sophos;i=\"5.77,395,1596524400\"; d=\"scan'208\";a=\"154073067\"",
            "E=Sophos;i=\"5.77,395,1596524400\"; d=\"scan'208\";a=\"523302763\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "LihongX Ma <lihongx.ma@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "LihongX Ma <lihongx.ma@intel.com>",
        "Date": "Tue, 20 Oct 2020 01:30:51 +0800",
        "Message-Id": "<1603128651-18576-1-git-send-email-lihongx.ma@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "Subject": "[dts] [PATCH V1] framework: add the check of scapy version",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "- modify the requirement scapy version to 2.4.2\n - add the check of the scapy version on tester\n\nSigned-off-by: LihongX Ma <lihongx.ma@intel.com>\n---\n framework/tester.py | 19 +++++++++++++++++++\n requirements.txt    |  2 +-\n 2 files changed, 20 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/framework/tester.py b/framework/tester.py\nindex ca179b2..008c10d 100644\n--- a/framework/tester.py\n+++ b/framework/tester.py\n@@ -80,6 +80,7 @@ class Tester(Crb):\n         # prepare for scapy env\n         self.scapy_sessions_li = list()\n         self.scapy_session = self.prepare_scapy_env()\n+        self.check_scapy_version()\n         self.tmp_file = '/tmp/tester/'\n         out = self.send_expect('ls -d %s' % self.tmp_file, '# ', verify=True)\n         if out == 2:\n@@ -105,6 +106,24 @@ class Tester(Crb):\n             session.logger.warning(f'entering import error: {out}')\n         return session\n \n+    def check_scapy_version(self):\n+        require_version = '2.4.4'\n+        self.scapy_session.get_session_before(timeout = 1)\n+        self.scapy_session.send_expect('conf.version', '\\'')\n+        out = self.scapy_session.get_session_before(timeout = 1)\n+        cur_version = out[:out.find('\\'')]\n+        out = self.session.send_expect('grep scapy requirements.txt', '# ')\n+        value = re.search('scapy\\s*==\\s*(\\S*)', out)\n+        if value is not None:\n+            require_version = value.group(1)\n+        cur_version = cur_version.split('.')\n+        require_version = require_version.split('.')\n+        for i in range(len(require_version)):\n+            if int(cur_version[i]) < int(require_version[i]):\n+                self.logger.warning('The scapy vesrion not meet the requirement on tester,' +\n+                    'please update your scapy, otherwise maybe some suite will failed')\n+                break\n+\n     def init_ext_gen(self):\n         \"\"\"\n         Initialize tester packet generator object.\ndiff --git a/requirements.txt b/requirements.txt\nindex cb9f636..fae0ace 100644\n--- a/requirements.txt\n+++ b/requirements.txt\n@@ -36,5 +36,5 @@ numpy==1.18.5\n docutils\n pcapy\n xlrd\n-scapy==2.4.3\n+scapy==2.4.4\n threadpool\n",
    "prefixes": [
        "V1"
    ]
}