get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 104931,
    "url": "http://patchwork.dpdk.org/api/patches/104931/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dts/patch/1638793115-2374-1-git-send-email-juraj.linkes@pantheon.tech/",
    "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": "<1638793115-2374-1-git-send-email-juraj.linkes@pantheon.tech>",
    "list_archive_url": "https://inbox.dpdk.org/dts/1638793115-2374-1-git-send-email-juraj.linkes@pantheon.tech",
    "date": "2021-12-06T12:18:34",
    "name": "[v1] ics/net_device: fix pylama errors",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "0cc0a8d89ac7d40df2273495294786a99be670cb",
    "submitter": {
        "id": 1626,
        "url": "http://patchwork.dpdk.org/api/people/1626/?format=api",
        "name": "Juraj Linkeš",
        "email": "juraj.linkes@pantheon.tech"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dts/patch/1638793115-2374-1-git-send-email-juraj.linkes@pantheon.tech/mbox/",
    "series": [
        {
            "id": 20874,
            "url": "http://patchwork.dpdk.org/api/series/20874/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=20874",
            "date": "2021-12-06T12:18:34",
            "name": "[v1] ics/net_device: fix pylama errors",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/20874/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/104931/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/104931/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 C622DA034F;\n\tMon,  6 Dec 2021 13:18:55 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 36D8642785;\n\tMon,  6 Dec 2021 13:18:50 +0100 (CET)",
            "from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20])\n by mails.dpdk.org (Postfix) with ESMTP id A468142743\n for <dts@dpdk.org>; Mon,  6 Dec 2021 13:18:38 +0100 (CET)",
            "from localhost (localhost [127.0.0.1])\n by lb.pantheon.sk (Postfix) with ESMTP id 19B5113429D;\n Mon,  6 Dec 2021 13:18:38 +0100 (CET)",
            "from lb.pantheon.sk ([127.0.0.1])\n by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id oUgB89_4SPxT; Mon,  6 Dec 2021 13:18:36 +0100 (CET)",
            "from service-node1.lab.pantheon.local (unknown [46.229.239.141])\n by lb.pantheon.sk (Postfix) with ESMTP id 1B554130F7E;\n Mon,  6 Dec 2021 13:18:35 +0100 (CET)"
        ],
        "X-Virus-Scanned": "amavisd-new at siecit.sk",
        "From": "=?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>",
        "To": "lijuan.tu@intel.com,\n\tohilyard@iol.unh.edu",
        "Cc": "dts@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>",
        "Subject": "[PATCH v1] ics/net_device: fix pylama errors",
        "Date": "Mon,  6 Dec 2021 13:18:34 +0100",
        "Message-Id": "<1638793115-2374-1-git-send-email-juraj.linkes@pantheon.tech>",
        "X-Mailer": "git-send-email 2.7.4",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "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": "Pylama found the following errors:\nnics/net_device.py:104: [E] E0213 Method should have \"self\" as first argument [pylint]\nnics/net_device.py:114: [E] E1102 func is not callable [pylint]\nnics/net_device.py:206: [E] E1101 Instance of 'NetDevice' has no 'current_driver' member [pylint]\nnics/net_device.py:297: [E] E1101 Instance of 'NetDevice' has no 'current_driver' member [pylint]\nnics/net_device.py:309: [E] E1101 Instance of 'NetDevice' has no 'current_driver' member [pylint]\nnics/net_device.py:321: [E] E1101 Instance of 'NetDevice' has no 'current_driver' member [pylint]\nnics/net_device.py:401: [E] E1101 Instance of 'NetDevice' has no 'current_driver' member [pylint]\nnics/net_device.py:441: [E] E0602 Undefined variable 'bus_id' [pylint]\nnics/net_device.py:461: [E] E1101 Instance of 'NetDevice' has no 'current_driver' member [pylint]\nnics/net_device.py:490: [E] E1101 Instance of 'NetDevice' has no 'current_driver' member [pylint]\nnics/net_device.py:516: [E] E1101 Instance of 'NetDevice' has no 'current_driver' member [pylint]\nnics/net_device.py:519: [E] E0102 method already defined line 510 [pylint]\nnics/net_device.py:525: [E] E1101 Instance of 'NetDevice' has no 'current_driver' member [pylint]\nnics/net_device.py:622: [E] E1101 Instance of 'NetDevice' has no 'current_driver' member [pylint]\nnics/net_device.py:696: [E] E1101 Instance of 'NetDevice' has no 'current_driver' member [pylint]\n\nSigned-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>\n---\nLijuan, please add additional people to review if needed.\n---\nLijuan, please add additional people to review if needed.\n---\nLijuan, please add additional people to review if needed.\n---\n nics/net_device.py | 13 +++----------\n 1 file changed, 3 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/nics/net_device.py b/nics/net_device.py\nindex 96f31327..e7c6b770 100644\n--- a/nics/net_device.py\n+++ b/nics/net_device.py\n@@ -73,6 +73,7 @@ class NetDevice(object):\n         self.driver_version = ''\n         self.firmware = ''\n         self.pkg = None\n+        self.current_driver = None\n \n     def stop(self):\n         pass\n@@ -101,6 +102,7 @@ class NetDevice(object):\n         \"\"\"\n         return True\n \n+    @staticmethod\n     def nic_has_driver(func):\n         \"\"\"\n         Check if the NIC has a driver.\n@@ -438,7 +440,7 @@ class NetDevice(object):\n                 'get_ipv4_addr_freebsd_%s' %\n                 generic_driver)\n \n-        return get_ipv4_addr_freebsd(intf, bus_id, devfun_id)\n+        return get_ipv4_addr_freebsd(intf)\n \n     def get_ipv4_addr_freebsd_generic(self, intf):\n         \"\"\"\n@@ -515,15 +517,6 @@ class NetDevice(object):\n             self, 'get_ipv6_addr_%s' % self.__get_os_type())\n         return get_ipv6_addr(self.intf_name, self.current_driver)\n \n-    @nic_has_driver\n-    def get_ipv6_addr(self):\n-        \"\"\"\n-        Get ipv6 address of specified pci device.\n-        \"\"\"\n-        get_ipv6_addr = getattr(\n-            self, 'get_ipv6_addr_%s' % self.__get_os_type())\n-        return get_ipv6_addr(self.intf_name, self.current_driver)\n-\n     def get_ipv6_addr_linux(self, intf, driver):\n         \"\"\"\n         Get ipv6 address of specified pci device on linux.\n",
    "prefixes": [
        "v1"
    ]
}