get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2218043,
    "url": "http://patchwork.ozlabs.org/api/patches/2218043/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ovn/patch/20260331100204.484770-1-dceara@redhat.com/",
    "project": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/projects/68/?format=api",
        "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": "<20260331100204.484770-1-dceara@redhat.com>",
    "list_archive_url": null,
    "date": "2026-03-31T10:02:04",
    "name": "[ovs-dev,branch-25.09] tests: Add missing L3 EVPN helper functions for multinode BGP tests.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "1d3de73da829e8100a393a7da39b7fe8e98fcde4",
    "submitter": {
        "id": 76591,
        "url": "http://patchwork.ozlabs.org/api/people/76591/?format=api",
        "name": "Dumitru Ceara",
        "email": "dceara@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ovn/patch/20260331100204.484770-1-dceara@redhat.com/mbox/",
    "series": [
        {
            "id": 498166,
            "url": "http://patchwork.ozlabs.org/api/series/498166/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ovn/list/?series=498166",
            "date": "2026-03-31T10:02:04",
            "name": "[ovs-dev,branch-25.09] tests: Add missing L3 EVPN helper functions for multinode BGP tests.",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498166/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218043/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218043/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ovs-dev-bounces@openvswitch.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "ovs-dev@openvswitch.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=d690NI/o;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org)",
            "smtp1.osuosl.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=d690NI/o",
            "smtp4.osuosl.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com",
            "smtp4.osuosl.org;\n dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com\n header.a=rsa-sha256 header.s=mimecast20190719 header.b=d690NI/o"
        ],
        "Received": [
            "from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4flNvb5d42z1y1q\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 21:02:19 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 5D71E823A0;\n\tTue, 31 Mar 2026 10:02:18 +0000 (UTC)",
            "from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id POkQlXqNwh93; Tue, 31 Mar 2026 10:02:17 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org\n [IPv6:2605:bc80:3010:104::8cd3:938])\n\tby smtp1.osuosl.org (Postfix) with ESMTPS id 66F728237F;\n\tTue, 31 Mar 2026 10:02:17 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 103B1C054A;\n\tTue, 31 Mar 2026 10:02:17 +0000 (UTC)",
            "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 98555C0549\n for <ovs-dev@openvswitch.org>; Tue, 31 Mar 2026 10:02:16 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id 8553840F7E\n for <ovs-dev@openvswitch.org>; Tue, 31 Mar 2026 10:02:16 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id TMuAiLmWXIcS for <ovs-dev@openvswitch.org>;\n Tue, 31 Mar 2026 10:02:15 +0000 (UTC)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by smtp4.osuosl.org (Postfix) with ESMTPS id 7473140F7C\n for <ovs-dev@openvswitch.org>; Tue, 31 Mar 2026 10:02:14 +0000 (UTC)",
            "from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-58-nKdn4xjKNeO_EhTy9KIVcA-1; Tue,\n 31 Mar 2026 06:02:10 -0400",
            "from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id D29851955BCE; Tue, 31 Mar 2026 10:02:08 +0000 (UTC)",
            "from cecil-rh.redhat.com (unknown [10.44.32.199])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id ABF08180035F; Tue, 31 Mar 2026 10:02:07 +0000 (UTC)"
        ],
        "X-Virus-Scanned": [
            "amavis at osuosl.org",
            "amavis at osuosl.org"
        ],
        "X-Comment": "SPF check N/A for local connections -\n client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN> ",
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 smtp1.osuosl.org 66F728237F",
            "OpenDKIM Filter v2.11.0 smtp4.osuosl.org 7473140F7C"
        ],
        "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=170.10.133.124;\n helo=us-smtp-delivery-124.mimecast.com; envelope-from=dceara@redhat.com;\n receiver=<UNKNOWN>",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp4.osuosl.org 7473140F7C",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1774951333;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=9fSjprrvaC4TREYlDOBj/qYPhTJyDMvNqocEBDVdsvQ=;\n b=d690NI/ome0+9gELtGFMZOayPn8ZRmGBWzCqwB+PT5JKYzrBspk7T9xFS/b7x6CBBqrjF3\n Obr1FB8unt5GZiExLdhI/BYE8P6m5d4qIgpyOGCF1CtWFpClbAsAii5t5gKpz5FUhoGp+u\n 6zfNp3L6ELztnO0mmLqfpG91q829sk8=",
        "X-MC-Unique": "nKdn4xjKNeO_EhTy9KIVcA-1",
        "X-Mimecast-MFC-AGG-ID": "nKdn4xjKNeO_EhTy9KIVcA_1774951329",
        "To": "ovs-dev@openvswitch.org",
        "Date": "Tue, 31 Mar 2026 12:02:04 +0200",
        "Message-ID": "<20260331100204.484770-1-dceara@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.111",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "lRzszJl7nWF7riq_eLMx5wUevjZySOhBAjz1TiqdKJM_1774951329",
        "X-Mimecast-Originator": "redhat.com",
        "Subject": "[ovs-dev] [PATCH ovn branch-25.09] tests: Add missing L3 EVPN\n helper functions for multinode BGP tests.",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.30",
        "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>",
        "From": "Dumitru Ceara via dev <ovs-dev@openvswitch.org>",
        "Reply-To": "Dumitru Ceara <dceara@redhat.com>",
        "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": "Add m_frr_ns_flags, m_config_external_frr_router_l3, and\nm_config_host_frr_router_l3 helpers that were missing after\nbackporting commit 2d22689f6 (\"northd: Fix L3 EVPN when remote\nVTEP is not L2 adjacent\").\n\nFixes: 2d22689f6515 (\"northd: Fix L3 EVPN when remote VTEP is not L2 adjacent.\")\nAssisted-by: Claude, with model: claude-opus-4-6\nSigned-off-by: Dumitru Ceara <dceara@redhat.com>\n---\n tests/multinode-bgp-macros.at | 143 ++++++++++++++++++++++++++++++++++\n 1 file changed, 143 insertions(+)",
    "diff": "diff --git a/tests/multinode-bgp-macros.at b/tests/multinode-bgp-macros.at\nindex 2fb4b9b2ff..74c56cca19 100644\n--- a/tests/multinode-bgp-macros.at\n+++ b/tests/multinode-bgp-macros.at\n@@ -4,6 +4,20 @@\n \n OVS_START_SHELL_HELPERS\n \n+# m_frr_ns_flags NETNS\n+#\n+# Builds the argument flags string to be passed to FRR when running in a\n+# network namespace.\n+m_frr_ns_flags() {\n+    local ns=$1\n+\n+    if m_is_fedora; then\n+        echo \"--vty_socket /run/frr/$ns\"\n+    else\n+        echo \"-N $ns\"\n+    fi\n+}\n+\n # m_setup_external_frr_vrf NODE VNI VXLAN_IP LOCAL_MAC LOCAL_IP NETNS\n #\n # Sets up a VRF in NETNS so that it can be used by FRR running in that\n@@ -140,6 +154,66 @@ m_config_external_frr_router() {\n     fi\n }\n \n+# m_config_external_frr_router_l3 NODE BGP_AS BGP_ROUTER_ID BGP_IP BGP_IP6 BGP_MAC VNI\n+#\n+# Configures an external FRR BGP speaker for L3 EVPN in a network namespace\n+# on the ovn-fake-multinode node NODE.  The BGP autonomous system is\n+# configured to be BGP_AS.  The speaker uses as BGP IP address, BGP_IP, BGP_IP6\n+# and BGP_MAC as mac address.\n+m_config_external_frr_router_l3() {\n+    local node=$1 bgp_as=$2 bgp_router_id=$3 bgp_ip=$4 bgp_ip6=$5 bgp_mac=$6 vni=$7\n+    local frr_flags=$(m_frr_ns_flags frr-ns)\n+    local br_name=br-$node\n+\n+    # NOTE: we set \"no bgp ebgp-requires-policy\" to simplify EVPN deployments.\n+    echo \"configure\n+    ip prefix-list accept-all seq 5 permit any\n+\n+    vrf vrf-$vni\n+     vni $vni\n+    exit-vrf\n+\n+    router bgp $bgp_as\n+      bgp router-id $bgp_router_id\n+      no bgp ebgp-requires-policy\n+\n+      neighbor ext1 soft-reconfiguration inbound\n+      neighbor ext1 interface remote-as external\n+\n+      address-family l2vpn evpn\n+        neighbor ext1 activate\n+        advertise-all-vni\n+        advertise-svi-ip\n+      exit-address-family\n+    exit\n+\n+    router bgp $bgp_as vrf vrf-$vni\n+      bgp router-id $bgp_router_id\n+      no bgp ebgp-requires-policy\n+\n+      address-family ipv4 unicast\n+       redistribute kernel\n+       redistribute connected\n+      exit-address-family\n+\n+      address-family ipv6 unicast\n+       redistribute kernel\n+       redistribute connected\n+      exit-address-family\n+\n+      address-family l2vpn evpn\n+       advertise ipv4 unicast\n+       advertise ipv6 unicast\n+      exit-address-family\n+    exit\n+    \" | podman exec -i $node vtysh $frr_flags\n+\n+    # Configure VRF.\n+    vxlan_ip=$(echo $bgp_ip | cut -f 1 -d '/')\n+    m_setup_external_frr_vrf $node $vni $vxlan_ip $bgp_mac $bgp_ip frr-ns\n+    check m_as $node ip netns exec frr-ns ip -6 addr add dev br-$vni $bgp_ip6\n+}\n+\n # m_ovn_frr_router_name NODE\n m_ovn_frr_router_name() {\n     local node=$1\n@@ -409,4 +483,73 @@ m_config_host_frr_router() {\n     m_setup_host_frr_vrf $node $vni $vxlan_ip $bgp_mac $bgp_ip\n }\n \n+# m_config_host_frr_router_l3 NODE BGP_AS BGP_ROUTER_ID BGP_IP BGP_MAC VNI\n+#\n+# Sets up an FRR BGP speaker speaker for L3 EVPN in the default network\n+# namespace on the ovn-fake-multinode node NODE.  This speaker is running on\n+# a ovs bridge interface (simulating the fabric connection).\n+#\n+# The BGP autonomous system is configured to be BGP_AS and the FRR instance\n+# runs in vrf-VNI.\n+m_config_host_frr_router_l3() {\n+    local node=$1 bgp_as=$2 bgp_router_id=$3 bgp_ip=$4 bgp_mac=$5 vni=$6\n+\n+    local br_name=br-$node physnet=physnet_${node}_ext0\n+    local lr=$(m_ovn_frr_router_name $node)\n+    local lrp=$(m_ovn_frr_router_port_name $node)\n+    local ls=$(m_ovn_frr_switch_name $node)\n+    local lsp=$(m_ovn_frr_switch_port_name $node)\n+    local lsp_bgp=$(m_ovn_frr_switch_bgp_port_name $node)\n+    local lsp_ln=$(m_ovn_frr_switch_localnet_port_name $node)\n+\n+    # NOTE: we set \"no bgp ebgp-requires-policy\" to simplify EVPN deployments.\n+    echo \"configure\n+    vrf vrf-$vni\n+     vni $vni\n+    exit-vrf\n+\n+    ip prefix-list no-default seq 5 deny 0.0.0.0/0\n+    ip prefix-list no-default seq 10 permit 0.0.0.0/0 le 32\n+\n+    ipv6 prefix-list no-default seq 5 deny ::/0\n+    ipv6 prefix-list no-default seq 10 permit ::/0 le 128\n+\n+    router bgp ${bgp_as}\n+      bgp router-id $bgp_router_id\n+      no bgp ebgp-requires-policy\n+      neighbor $br_name interface remote-as external\n+\n+      address-family l2vpn evpn\n+        neighbor $br_name activate\n+        advertise-all-vni\n+        advertise-svi-ip\n+      exit-address-family\n+    exit\n+\n+    router bgp ${bgp_as} vrf vrf-$vni\n+      bgp router-id $bgp_router_id\n+      no bgp ebgp-requires-policy\n+\n+      address-family ipv4 unicast\n+       redistribute kernel\n+       redistribute connected\n+      exit-address-family\n+\n+      address-family ipv6 unicast\n+       redistribute kernel\n+       redistribute connected\n+      exit-address-family\n+\n+      address-family l2vpn evpn\n+       advertise ipv4 unicast\n+       advertise ipv6 unicast\n+      exit-address-family\n+    exit\n+    \" | podman exec -i $node vtysh\n+\n+    # Configure VRF.\n+    vxlan_ip=$(echo $bgp_ip | cut -f 1 -d '/')\n+    m_setup_host_frr_vrf $node $vni $vxlan_ip $bgp_mac $bgp_ip\n+}\n+\n OVS_END_SHELL_HELPERS\n",
    "prefixes": [
        "ovs-dev",
        "branch-25.09"
    ]
}