get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 111016,
    "url": "http://patches.dpdk.org/api/patches/111016/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20220511061415.3665-1-junx.dong@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patches.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": "<20220511061415.3665-1-junx.dong@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220511061415.3665-1-junx.dong@intel.com",
    "date": "2022-05-11T06:14:15",
    "name": "[V1] ixia_network/ixnet: fix bug of changing string content",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "555df62791dcd2ec359e64245872d99c772a55db",
    "submitter": {
        "id": 2237,
        "url": "http://patches.dpdk.org/api/people/2237/?format=api",
        "name": "Jun Dong",
        "email": "junx.dong@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20220511061415.3665-1-junx.dong@intel.com/mbox/",
    "series": [
        {
            "id": 22882,
            "url": "http://patches.dpdk.org/api/series/22882/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=22882",
            "date": "2022-05-11T06:14:15",
            "name": "[V1] ixia_network/ixnet: fix bug of changing string content",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/22882/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/111016/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/111016/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 214A2A0032;\n\tWed, 11 May 2022 08:14:27 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 14465410F2;\n\tWed, 11 May 2022 08:14:27 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id D9DA940042\n for <dts@dpdk.org>; Wed, 11 May 2022 08:14:25 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 May 2022 23:14:24 -0700",
            "from shwdenpg197.ccr.corp.intel.com ([10.253.109.70])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 May 2022 23:14:22 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1652249666; x=1683785666;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=QBjZshhhejVInXaJQZ7UhGNIc66LtKF95Amskf8uuNM=;\n b=LU7eZhP/Bm5ZIqjcns0JOCVr0CtYANRvb//xUAYUDPpoZjEdw0F/SUdX\n GoMNVBgrfNv3cZB0xRZB7rNius0yxYSogFQ/9mhpMBYuWKh+KU2+VtNu4\n KvmTw8Zrs2Ol3oot9IuZgSGKI5JD/cjck311R0qQ9s3QV0ATyVIFxyd7L\n 3wjLN4DwI7ZOq54TFGg2xzhBSVbYzPlBJYWBlB+GPi3m0VsDq97uGkCE6\n XXAS4OwjffTxBn4DKpA9RAAslDRrrDGTD1uqbhr11UfYFBdDcgLLDLkZT\n 0jI8VESVXUBJLIsJXB6kx/xRwcV13Z2a255Hmui136X0kcWkfIjAGL8to g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10343\"; a=\"257139802\"",
            "E=Sophos;i=\"5.91,216,1647327600\"; d=\"scan'208\";a=\"257139802\"",
            "E=Sophos;i=\"5.91,216,1647327600\"; d=\"scan'208\";a=\"623800375\""
        ],
        "From": "Jun Dong <junx.dong@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "lijuan.tu@intel.com,\n\tqingx.sun@intel.com,\n\tjunx.dong@intel.com",
        "Subject": "[dts] [V1] ixia_network/ixnet: fix bug of changing string content",
        "Date": "Wed, 11 May 2022 14:14:15 +0800",
        "Message-Id": "<20220511061415.3665-1-junx.dong@intel.com>",
        "X-Mailer": "git-send-email 2.33.1.windows.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "In history patch that add OUTPUT_DIR variable into initional function to \nfix E1101 error that instance has no member error[pylint checking]. this \nintruduce a bug, OUTPUT_DIR was defined in subclass as a property contained \na string  , and when parent class initial, the OUTPUT_DIR attribute was \nalready exist and couldn't redefine again. this patch attempt to fix it \nthat  through reflection mechanism to get the value instead of using \nthe variable directly and to avoid the E1101 error.\n\nSigned-off-by: Jun Dong <junx.dong@intel.com>\n---\n framework/ixia_network/ixnet.py | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/framework/ixia_network/ixnet.py b/framework/ixia_network/ixnet.py\nindex 08aaf568..5d54fa30 100644\n--- a/framework/ixia_network/ixnet.py\n+++ b/framework/ixia_network/ixnet.py\n@@ -70,7 +70,6 @@ class IxnetTrafficGenerator(object):\n         # initialize ixNetwork\n         self.new_blank_config()\n         self.tg_vports = self.assign_ports(self.tg_ports)\n-        self.OUTPUT_DIR = None\n \n     def get_session_id(self, api_server):\n         url = \"{server}/api/v1/sessions\".format(server=api_server)\n@@ -746,7 +745,10 @@ class IxnetTrafficGenerator(object):\n \n         timestamp = datetime.now().strftime(\"%Y%m%d_%H%M%S\")\n         copy_to_path = os.sep.join(\n-            [self.OUTPUT_DIR, \"ixnet\" + datetime.now().strftime(\"%Y%m%d_%H%M%S\")]\n+            [\n+                getattr(self, \"OUTPUT_DIR\"),\n+                \"ixnet\" + datetime.now().strftime(\"%Y%m%d_%H%M%S\"),\n+            ]\n         )\n         if not os.path.exists(copy_to_path):\n             os.makedirs(copy_to_path)\n",
    "prefixes": [
        "V1"
    ]
}