get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1528602,
    "url": "http://patchwork.ozlabs.org/api/patches/1528602/",
    "web_url": "http://patchwork.ozlabs.org/project/ovn/patch/20210916000624.1609-3-odivlad@gmail.com/",
    "project": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/projects/68/",
        "name": "Open Virtual Network development",
        "link_name": "ovn",
        "list_id": "ovs-dev.openvswitch.org",
        "list_email": "ovs-dev@openvswitch.org",
        "web_url": "http://openvswitch.org/",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20210916000624.1609-3-odivlad@gmail.com>",
    "list_archive_url": null,
    "date": "2021-09-16T00:06:23",
    "name": "[ovs-dev,2/3] tests: check that flow for ramp switch is added when PB is created",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "4df08eb79533da5a52365014bfb25e57ca8a0e4b",
    "submitter": {
        "id": 80943,
        "url": "http://patchwork.ozlabs.org/api/people/80943/",
        "name": "Vladislav Odintsov",
        "email": "odivlad@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ovn/patch/20210916000624.1609-3-odivlad@gmail.com/mbox/",
    "series": [
        {
            "id": 262530,
            "url": "http://patchwork.ozlabs.org/api/series/262530/",
            "web_url": "http://patchwork.ozlabs.org/project/ovn/list/?series=262530",
            "date": "2021-09-16T00:06:21",
            "name": "controller-vtep: stateful datapath bugfix & add new test",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/262530/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1528602/comments/",
    "check": "fail",
    "checks": "http://patchwork.ozlabs.org/api/patches/1528602/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@ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20210112 header.b=EeuHNasm;\n\tdkim-atps=neutral",
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)"
        ],
        "Received": [
            "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4H8y7S19jtz9sW8\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Sep 2021 10:07:00 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id C1CE160EA3;\n\tThu, 16 Sep 2021 00:06:57 +0000 (UTC)",
            "from smtp3.osuosl.org ([127.0.0.1])\n\tby localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id lcN6r5MZuN74; Thu, 16 Sep 2021 00:06:56 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56])\n\tby smtp3.osuosl.org (Postfix) with ESMTPS id F3DDA61381;\n\tThu, 16 Sep 2021 00:06:55 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id BC079C0011;\n\tThu, 16 Sep 2021 00:06:55 +0000 (UTC)",
            "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 080DAC0011\n for <dev@openvswitch.org>; Thu, 16 Sep 2021 00:06:55 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 6478061381\n for <dev@openvswitch.org>; Thu, 16 Sep 2021 00:06:52 +0000 (UTC)",
            "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id DRuXODdcdqdp for <dev@openvswitch.org>;\n Thu, 16 Sep 2021 00:06:51 +0000 (UTC)",
            "from mail-lf1-x134.google.com (mail-lf1-x134.google.com\n [IPv6:2a00:1450:4864:20::134])\n by smtp3.osuosl.org (Postfix) with ESMTPS id EF09E6137E\n for <dev@openvswitch.org>; Thu, 16 Sep 2021 00:06:50 +0000 (UTC)",
            "by mail-lf1-x134.google.com with SMTP id p29so11189970lfa.11\n for <dev@openvswitch.org>; Wed, 15 Sep 2021 17:06:50 -0700 (PDT)",
            "from localhost.localdomain (109-252-131-59.dynamic.spd-mgts.ru.\n [109.252.131.59])\n by smtp.gmail.com with ESMTPSA id 207sm157486ljf.41.2021.09.15.17.06.48\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Wed, 15 Sep 2021 17:06:48 -0700 (PDT)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "whitelisted by SQLgrey-1.8.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=Rl/rkzIK2Rag63q4+UAnK+bAmOYYW5X0ejhcVNwphdk=;\n b=EeuHNasmtoiikT4bkVe5j4498vTLsVdkbq4GSqxBXtqMbredR/PxHhKPTvJK3ZRX4N\n lJsBVMkdXN0RrRQSdATzTZPruZ9g0x4+4vosIQNCECoztJ7In6Gwl5p+RpsWrUg0tmuz\n 8Yi6YUJOTPfwFT2wog740r/wuQFDA+AEnyrQbSMh56DWKqX6iR3LeYI14etgVJZ/SNm/\n Ia/VuNAAJCCxsKAgiqLnY+OzPlfIIh3DghERZYakUlCHonne2yDV32Qs1HxoCCRFFcsj\n wOghC9EPiTV1/n0GwRpPtcA5XNm/1O90GC0rv1gU9vA8Ben/qq/C/YjWL4xX+rdqcxns\n a1Mw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=Rl/rkzIK2Rag63q4+UAnK+bAmOYYW5X0ejhcVNwphdk=;\n b=f17ERLZ6RpXsFyjji0DeDvj4bpO7cB5O11nsoyHxq//hVJMtzz5i7n+AQM0YKDBZis\n EezA0ZLWa+YGYeMEsxobBbGXhn5wnU5d7W5BZQwgjlSf9jF2AyPLCYDrpcBgGbFLvWJn\n 9Kqicatk2A4+PT0tn0a8PE6quolVfxmDJyzEoOljbqjPrqefZ0POHmgWkh4VbQ8m6Pxv\n goP10a6HD6seKPnWshotBi9vDMkleHmTbmx9zx+qbXx930ku6AVmCot7RHdQaWuzY8kF\n oTA1dStS6x28aQ4enznarwc+LSDP9aXOPMDdKJlStpjl8uH4v/tFGWbtitda7hpLBnm6\n ta0A==",
        "X-Gm-Message-State": "AOAM531SAo0AMTyXfD1+yEvPhGls+pHwSKrTFZppoyth+P2pC5ZJvo+q\n YSzrMFG9uI0c1eKS+lx9csUd1ClDkUY=",
        "X-Google-Smtp-Source": "\n ABdhPJyLq2PPAojlJF5/bOx92BfGDpoeJH2Fs+c99gmTWnvSpRiEgry8wLJP3ME2Cw5Bli4s1eDhYw==",
        "X-Received": "by 2002:a05:651c:50e:: with SMTP id\n o14mr2385988ljp.351.1631750808832;\n Wed, 15 Sep 2021 17:06:48 -0700 (PDT)",
        "From": "Vladislav Odintsov <odivlad@gmail.com>",
        "To": "dev@openvswitch.org",
        "Date": "Thu, 16 Sep 2021 03:06:23 +0300",
        "Message-Id": "<20210916000624.1609-3-odivlad@gmail.com>",
        "X-Mailer": "git-send-email 2.30.0",
        "In-Reply-To": "<20210916000624.1609-1-odivlad@gmail.com>",
        "References": "<20210916000624.1609-1-odivlad@gmail.com>",
        "MIME-Version": "1.0",
        "Cc": "Vladislav Odintsov <odivlad@gmail.com>",
        "Subject": "[ovs-dev] [PATCH ovn 2/3] tests: check that flow for ramp switch is\n\tadded when PB is created",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "<ovs-dev.openvswitch.org>",
        "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <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 <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ovs-dev-bounces@openvswitch.org",
        "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>"
    },
    "content": "Signed-off-by: Vladislav Odintsov <odivlad@gmail.com>\n---\n tests/ovn-controller-vtep.at | 64 ++++++++++++++++++++++++++++++++++++\n 1 file changed, 64 insertions(+)",
    "diff": "diff --git a/tests/ovn-controller-vtep.at b/tests/ovn-controller-vtep.at\nindex 21d79c66b..2d1ebad56 100644\n--- a/tests/ovn-controller-vtep.at\n+++ b/tests/ovn-controller-vtep.at\n@@ -558,3 +558,67 @@ done | sort], [0], [dnl\n \n OVN_CONTROLLER_VTEP_STOP\n AT_CLEANUP\n+\n+\n+# Tests OF to vtep device on ovn-controller node.\n+OVN_FOR_EACH_NORTHD([\n+AT_SETUP([ovn-controller-vtep - hv flows])\n+ovn_start\n+OVN_CONTROLLER_VTEP_START(vtep1)\n+net_add n1\n+\n+# Start hv chassis and create lswitch with normal vif attached to hv chassis\n+sim_add hv1\n+as hv1\n+ovs-vsctl -- add-br br-phys\n+ovn_attach n1 br-phys 192.168.0.1\n+ovn-nbctl ls-add lsw0\n+ovn-nbctl lsp-add lsw0 lsp0\n+ovn-nbctl lsp-set-addresses lsp0 f0:00:00:00:00:01\n+ovs-vsctl add-port br-int vif0 -- set Interface vif0 external-ids:iface-id=lsp0\n+\n+\n+# 1st testcase: create vtep logical switch port and then bind vlan on vtep\n+OVN_NB_ADD_VTEP_PORT([lsw0], [lsp-vtep], [vtep1], [lswitch0])\n+\n+# ensure there is a port_binding without chassis set\n+wait_row_count Port_Binding 1 logical_port=lsp-vtep chassis='[[]]'\n+\n+# add vlan binding, ensure port_binding has chassis and OF on hv is installed\n+OVS_WAIT_WHILE([ovs-ofctl dump-flows br-int table=0 | grep 'priority=110'])\n+check as vtep1 vtep-ctl add-ls lswitch0 -- bind-ls vtep1 p0 100 lswitch0\n+wait_row_count Port_Binding 1 logical_port=lsp-vtep chassis!='[[]]'\n+OVS_WAIT_UNTIL([ovs-ofctl dump-flows br-int table=0 | grep 'priority=110'])\n+AT_CHECK([ovs-ofctl dump-flows br-int table=0 | grep 'priority=110' | \\\n+          awk '{print $(NF-1), $NF}' | sed -e 's/in_port=[[0-9]]\\+/in_port=<>/g' | \\\n+          sed -e 's/0x[[0-9a-f]]\\+/0x<>/g'], [0], [dnl\n+priority=110,tun_id=0x<>,in_port=<> actions=move:NXM_NX_TUN_ID[[0..23]]->OXM_OF_METADATA[[0..23]],load:0x<>->NXM_NX_REG14[[0..14]],load:0x<>->NXM_NX_REG10[[1]],resubmit(,8)\n+])\n+\n+# cleanup\n+check ovn-nbctl lsp-del lsp-vtep\n+check as vtep1 vtep-ctl unbind-ls vtep1 p0 100 -- clear-local-macs lswitch0 \\\n+                        -- clear-remote-macs lswitch0 -- del-ls lswitch0\n+\n+\n+# 2nd testcase: create vlan binding on vtep and then create logical switch port for it.\n+# ensure there's no port_binding\n+wait_row_count Port_Binding 0 logical_port=lsp-vtep\n+\n+check as vtep1 vtep-ctl add-ls lswitch0 -- bind-ls vtep1 p0 100 lswitch0\n+OVN_NB_ADD_VTEP_PORT([lsw0], [lsp-vtep], [vtep1], [lswitch0])\n+wait_row_count Port_Binding 1 logical_port=lsp-vtep chassis!='[[]]'\n+\n+# TODO (Numan): Remove this recompute to reproduce the issue\n+check as hv1 ovn-appctl -t ovn-controller recompute\n+\n+OVS_WAIT_UNTIL([ovs-ofctl dump-flows br-int table=0 | grep 'priority=110'])\n+AT_CHECK([ovs-ofctl dump-flows br-int table=0 | grep 'priority=110' | \\\n+          awk '{print $(NF-1), $NF}' | sed -e 's/in_port=[[0-9]]\\+/in_port=<>/g' | \\\n+          sed -e 's/0x[[0-9a-f]]\\+/0x<>/g'], [0], [dnl\n+priority=110,tun_id=0x<>,in_port=<> actions=move:NXM_NX_TUN_ID[[0..23]]->OXM_OF_METADATA[[0..23]],load:0x<>->NXM_NX_REG14[[0..14]],load:0x<>->NXM_NX_REG10[[1]],resubmit(,8)\n+])\n+\n+OVN_CLEANUP([hv1])\n+AT_CLEANUP\n+])\n",
    "prefixes": [
        "ovs-dev",
        "2/3"
    ]
}