get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 790339,
    "url": "http://patchwork.ozlabs.org/api/patches/790339/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/1500389703-5928-3-git-send-email-majopela@redhat.com/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/?format=api",
        "name": "Open vSwitch",
        "link_name": "openvswitch",
        "list_id": "ovs-dev.openvswitch.org",
        "list_email": "ovs-dev@openvswitch.org",
        "web_url": "http://openvswitch.org/",
        "scm_url": "git@github.com:openvswitch/ovs.git",
        "webscm_url": "https://github.com/openvswitch/ovs",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1500389703-5928-3-git-send-email-majopela@redhat.com>",
    "list_archive_url": null,
    "date": "2017-07-18T14:55:02",
    "name": "[ovs-dev,v1,3/4] ovn: l3ha make packet checks more robust by filtering",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d2b4f46b726cfd6b56c26c0d45513e520b9fa805",
    "submitter": {
        "id": 67170,
        "url": "http://patchwork.ozlabs.org/api/people/67170/?format=api",
        "name": "Miguel Angel Ajo",
        "email": "majopela@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/1500389703-5928-3-git-send-email-majopela@redhat.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/790339/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/790339/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ovs-dev-bounces@openvswitch.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "dev@openvswitch.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "ovs-dev@mail.linuxfoundation.org"
        ],
        "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=openvswitch.org\n\t(client-ip=140.211.169.12; helo=mail.linuxfoundation.org;\n\tenvelope-from=ovs-dev-bounces@openvswitch.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from mail.linuxfoundation.org (mail.linuxfoundation.org\n\t[140.211.169.12])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xBjtz0CWJz9ryr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 19 Jul 2017 00:57:31 +1000 (AEST)",
            "from mail.linux-foundation.org (localhost [127.0.0.1])\n\tby mail.linuxfoundation.org (Postfix) with ESMTP id BF957A73;\n\tTue, 18 Jul 2017 14:55:18 +0000 (UTC)",
            "from smtp1.linuxfoundation.org (smtp1.linux-foundation.org\n\t[172.17.192.35])\n\tby mail.linuxfoundation.org (Postfix) with ESMTPS id C0932970\n\tfor <dev@openvswitch.org>; Tue, 18 Jul 2017 14:55:16 +0000 (UTC)",
            "from mail-lf0-f54.google.com (mail-lf0-f54.google.com\n\t[209.85.215.54])\n\tby smtp1.linuxfoundation.org (Postfix) with ESMTPS id 31E6E152\n\tfor <dev@openvswitch.org>; Tue, 18 Jul 2017 14:55:16 +0000 (UTC)",
            "by mail-lf0-f54.google.com with SMTP id z78so16397766lff.0\n\tfor <dev@openvswitch.org>; Tue, 18 Jul 2017 07:55:16 -0700 (PDT)",
            "from gw2.localdomain (111.148.134.37.dynamic.jazztel.es.\n\t[37.134.148.111]) by smtp.gmail.com with ESMTPSA id\n\tm26sm3535501wrm.4.2017.07.18.07.55.13\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 18 Jul 2017 07:55:13 -0700 (PDT)"
        ],
        "X-Greylist": "whitelisted by SQLgrey-1.7.6",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=u0N8ActtxEvCilWZ4jQydB5NDapaheyrSlj1kMzhDpo=;\n\tb=pDIuAp0sawtsj5IjYDsWucRqjPwRYAkZbhSmlRLpUT76zMYMJL54SMrS8rtqBB5UxK\n\tmi4y/psv7wXmpHF7ZBOK/awdRAN0ryYUnh20D9T0cuQsfvt+4cpCRuuTw46wIAo37zlx\n\tCEgeSJeuWjBEF9Z1axVnb6k4ZLgTi3FwlJS0FiWBnUSQ0ZXh6b1/nbzRkEcdeKX/6wjP\n\tsyLYSOo2iefnq9bS8M5jVD1De9rgNzf1YN1Kmp/IScY6aHxWlHjslzunlVpX6kn4sn4y\n\tOc8x2uQjzgzsd1G+ZbQqcIyA3pBD+2AwQWPdOoMpFpDfeAM2Kz4VlhHJ+T4TwqPjpr2V\n\tbhBA==",
        "X-Gm-Message-State": "AIVw111Kg3KT6VKcJhFY83X7S/nB/uj2+a/ts/4W8D1oWVgUXOrviN8g\n\tn/QPjdYlWHVvYWTLEWQS3Q==",
        "X-Received": "by 10.28.213.205 with SMTP id m196mr2313175wmg.109.1500389714312;\n\tTue, 18 Jul 2017 07:55:14 -0700 (PDT)",
        "From": "Miguel Angel Ajo <majopela@redhat.com>",
        "To": "dev@openvswitch.org",
        "Date": "Tue, 18 Jul 2017 14:55:02 +0000",
        "Message-Id": "<1500389703-5928-3-git-send-email-majopela@redhat.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1500389703-5928-1-git-send-email-majopela@redhat.com>",
        "References": "<1500389703-5928-1-git-send-email-majopela@redhat.com>",
        "X-Spam-Status": "No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_SORBS_SPAM autolearn=no version=3.3.1",
        "X-Spam-Checker-Version": "SpamAssassin 3.3.1 (2010-03-16) on\n\tsmtp1.linux-foundation.org",
        "Cc": "Miguel Angel Ajo <majopela@redhat.com>",
        "Subject": "[ovs-dev] [PATCH v1 3/4] ovn: l3ha make packet checks more robust\n\tby filtering",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.12",
        "Precedence": "list",
        "List-Id": "<ovs-dev.openvswitch.org>",
        "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n\t<mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>",
        "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>",
        "List-Post": "<mailto:ovs-dev@openvswitch.org>",
        "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>",
        "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n\t<mailto:ovs-dev-request@openvswitch.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "ovs-dev-bounces@openvswitch.org",
        "Errors-To": "ovs-dev-bounces@openvswitch.org"
    },
    "content": "We're now filtering out packets that we don't care about before\ncomparing with expected data.\n\nAlso, we're less strict on the number of gARPs we expect to\nreceive by using uniq filter, and looking for just one (or\nnone where it should be none).\n\nSigned-off-by: Miguel Angel Ajo <majopela@redhat.com>\n---\n tests/ovn.at | 20 ++++++++++++--------\n 1 file changed, 12 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/tests/ovn.at b/tests/ovn.at\nindex d8b8693..229755c 100644\n--- a/tests/ovn.at\n+++ b/tests/ovn.at\n@@ -8034,18 +8034,22 @@ trim_zeros() {\n     sed 's/\\(00\\)\\{1,\\}$//'\n }\n \n+only_broadcast_from_lrp1() {\n+    grep \"fffffffffffff00000000001\"\n+}\n+\n garp=\"fffffffffffff0000000000108060001080006040001f00000000001c0a80064000000000000c0a80064\"\n-echo $garp >> expout\n-echo $garp >> expout\n-$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv1/snoopvif-tx.pcap | trim_zeros > hv1_snoop_tx\n+echo $garp > expout\n+\n+$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv1/snoopvif-tx.pcap | trim_zeros | only_broadcast_from_lrp1 | uniq > hv1_snoop_tx\n echo \"packets on hv1-snoopvif:\"\n cat hv1_snoop_tx\n AT_CHECK([sort hv1_snoop_tx], [0], [expout])\n-$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv2/br-phys_n1-tx.pcap | trim_zeros > hv2_br_phys_tx\n+$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv2/br-phys_n1-tx.pcap | trim_zeros | only_broadcast_from_lrp1 | uniq > hv2_br_phys_tx\n echo \"packets on hv2 br-phys tx\"\n cat hv2_br_phys_tx\n AT_CHECK([grep $garp hv2_br_phys_tx | sort], [0], [expout])\n-$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv3/br-phys_n1-tx.pcap | trim_zeros > hv3_br_phys_tx\n+$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv3/br-phys_n1-tx.pcap | trim_zeros | only_broadcast_from_lrp1 | uniq > hv3_br_phys_tx\n echo \"packets on hv3 br-phys tx\"\n cat hv3_br_phys_tx\n AT_CHECK([grep $garp hv3_br_phys_tx | sort], [0], [])\n@@ -8071,11 +8075,11 @@ trim_zeros() {\n     sed 's/\\(00\\)\\{1,\\}$//'\n }\n \n-$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv1/snoopvif-tx.pcap | trim_zeros >  hv1_snoopvif_tx\n+$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv1/snoopvif-tx.pcap | trim_zeros | only_broadcast_from_lrp1 | uniq >  hv1_snoopvif_tx\n AT_CHECK([sort hv1_snoopvif_tx], [0], [expout])\n-$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv3/br-phys_n1-tx.pcap | trim_zeros > hv3_br_phys_tx\n+$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv3/br-phys_n1-tx.pcap | trim_zeros | only_broadcast_from_lrp1 | uniq > hv3_br_phys_tx\n AT_CHECK([grep $garp hv3_br_phys_tx | sort], [0], [expout])\n-$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv2/br-phys_n1-tx.pcap | trim_zeros > hv2_br_phys_tx\n+$PYTHON \"$top_srcdir/utilities/ovs-pcap.in\" hv2/br-phys_n1-tx.pcap | trim_zeros | only_broadcast_from_lrp1 | uniq > hv2_br_phys_tx\n AT_CHECK([grep $garp hv2_br_phys_tx | sort], [0], [])\n OVN_CLEANUP([hv1],[hv2],[hv3])\n \n",
    "prefixes": [
        "ovs-dev",
        "v1",
        "3/4"
    ]
}