get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1553365,
    "url": "http://patchwork.ozlabs.org/api/patches/1553365/",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/163654120292.1486166.3822003811574144112.stgit@fed.void/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/",
        "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": "<163654120292.1486166.3822003811574144112.stgit@fed.void>",
    "list_archive_url": null,
    "date": "2021-11-10T10:46:42",
    "name": "[ovs-dev,v2,2/4] Native tunnel: Add tnl/neigh/aging command.",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "8b61b64b654a1b62af9940e4e79cfc7527dc645d",
    "submitter": {
        "id": 80629,
        "url": "http://patchwork.ozlabs.org/api/people/80629/",
        "name": "Paolo Valerio",
        "email": "pvalerio@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/163654120292.1486166.3822003811574144112.stgit@fed.void/mbox/",
    "series": [
        {
            "id": 271333,
            "url": "http://patchwork.ozlabs.org/api/series/271333/",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=271333",
            "date": "2021-11-10T10:46:30",
            "name": "Native tunnel: Update neigh entries in tnl termination.",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/271333/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1553365/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/1553365/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@lists.linuxfoundation.org"
        ],
        "Authentication-Results": [
            "bilbo.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=QlkCM+b5;\n\tdkim-atps=neutral",
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=140.211.166.136; helo=smtp3.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)",
            "smtp2.osuosl.org (amavisd-new);\n dkim=pass (1024-bit key) header.d=redhat.com",
            "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pvalerio@redhat.com"
        ],
        "Received": [
            "from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hq1km0sSMz9sCD\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 10 Nov 2021 21:47:12 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 65BD460ACC;\n\tWed, 10 Nov 2021 10:47:10 +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 IzDsawekOhe2; Wed, 10 Nov 2021 10:47:09 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56])\n\tby smtp3.osuosl.org (Postfix) with ESMTPS id 5F3E960A77;\n\tWed, 10 Nov 2021 10:47:08 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 36683C001E;\n\tWed, 10 Nov 2021 10:47:08 +0000 (UTC)",
            "from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 3D1DEC000E\n for <dev@openvswitch.org>; Wed, 10 Nov 2021 10:47:07 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp2.osuosl.org (Postfix) with ESMTP id 1E6424042E\n for <dev@openvswitch.org>; Wed, 10 Nov 2021 10:46:51 +0000 (UTC)",
            "from smtp2.osuosl.org ([127.0.0.1])\n by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id 8sZvxXoBIEIV for <dev@openvswitch.org>;\n Wed, 10 Nov 2021 10:46:50 +0000 (UTC)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by smtp2.osuosl.org (Postfix) with ESMTPS id BBF744040D\n for <dev@openvswitch.org>; Wed, 10 Nov 2021 10:46:49 +0000 (UTC)",
            "from mail-wr1-f72.google.com (mail-wr1-f72.google.com\n [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-107-wSdrw1TgMoifoL9U1PhJ6w-1; Wed, 10 Nov 2021 05:46:46 -0500",
            "by mail-wr1-f72.google.com with SMTP id\n a2-20020a5d4d42000000b0017b3bcf41b9so328592wru.23\n for <dev@openvswitch.org>; Wed, 10 Nov 2021 02:46:46 -0800 (PST)",
            "from localhost (net-5-88-23-84.cust.vodafonedsl.it. [5.88.23.84])\n by smtp.gmail.com with ESMTPSA id l124sm5391404wml.8.2021.11.10.02.46.43\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 10 Nov 2021 02:46:43 -0800 (PST)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.8.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1636541208;\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 in-reply-to:in-reply-to:references:references;\n bh=4SEbGlGGuvOJMX5WX0fgO4M3mwRqm2zAJLpU+u4l13s=;\n b=QlkCM+b5wQKyuiX3R1M0lmqVjgZ9WSOC4hqNdqyoE9XIQpMZVgoSMRh3OSRmEWPtCHPXuS\n x915+llDLrnNVn2ejQZW5H6afgdq3Bi5KC8FHkASgL/tFr7ooi/IVfFR1RKtkGv7p9JfIJ\n gQTDVQ++rIVgAN+y4bGBBpq+yPyG0rc=",
        "X-MC-Unique": "wSdrw1TgMoifoL9U1PhJ6w-1",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:subject:from:to:cc:date:message-id:in-reply-to\n :references:user-agent:mime-version:content-transfer-encoding;\n bh=4SEbGlGGuvOJMX5WX0fgO4M3mwRqm2zAJLpU+u4l13s=;\n b=PHluUcQ1W93+K7Ztd6bUfpengXioRFpEoxVR5lvG47xyrZu7k+HGbnJ+7b35E6PTBE\n z/BnvRwOn3LOa1CbrSfJRW4tZnLCcQ2VLrp2o3nslgxmHbZxCCGBYraHMIEfMt6ArUL8\n 7HhGsHLV+vHDZcWEYducr8wV08shXFFwluVszDtoP00q+pktxbvwkcc/Hz/JIqKYRQjY\n htZAjFpYp3kOMmWddyOEnAafv0iI2IRp+21dp7EJQ3b2zMOu4OBQzcFlMnVHDpHeLPF1\n r+lJpodeScqOHIjv6mHQMTn5nIFV4ZX9ouc1B6PvfCTerdKVPyekuIQ0V0L3/zhwh74h\n debQ==",
        "X-Gm-Message-State": "AOAM532QT3VYcxLEvvGisx7/mfBGyFIBRKG1L2AsXnoPuIETVfyra0KC\n +RUjN7bqq3CDbmPU710hGu+q05av2nV3DhKGE/FkWLDANXH0OFkNCeXG+MWeM9kfBq3fIlmUKsy\n cmqUUE/tDsvTgUH5mJ9X8afXMiKyJZ05zMRyCySOwwAsN1CUJw3adm6u0Yw1P1lS/",
        "X-Received": [
            "by 2002:adf:fe4b:: with SMTP id\n m11mr18214289wrs.136.1636541204640;\n Wed, 10 Nov 2021 02:46:44 -0800 (PST)",
            "by 2002:adf:fe4b:: with SMTP id\n m11mr18214235wrs.136.1636541204188;\n Wed, 10 Nov 2021 02:46:44 -0800 (PST)"
        ],
        "X-Google-Smtp-Source": "\n ABdhPJzkHp1uCqg6KQFY7OB27ZutqRvT8gcBjoZaxkMKVadb+ObrUod7IBu1VW971B/AbXNLP9zlAg==",
        "From": "Paolo Valerio <pvalerio@redhat.com>",
        "To": "dev@openvswitch.org",
        "Date": "Wed, 10 Nov 2021 11:46:42 +0100",
        "Message-ID": "<163654120292.1486166.3822003811574144112.stgit@fed.void>",
        "In-Reply-To": "<163654119047.1486166.18090151938310335551.stgit@fed.void>",
        "References": "<163654119047.1486166.18090151938310335551.stgit@fed.void>",
        "User-Agent": "StGit/0.23",
        "MIME-Version": "1.0",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Cc": "fbl@redhat.com, i.maximets@ovn.org",
        "Subject": "[ovs-dev] [PATCH v2 2/4] Native tunnel: Add tnl/neigh/aging command.",
        "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": "with the command is now possible to change the aging time of the\ncache entries.\n\nFor the existing entries the aging time is updated only if the\ncurrent expiration is greater than the new one. In any case, the next\nrefresh will set it to the new value.\n\nThis is intended mostly for debugging purpose.\n\nSigned-off-by: Paolo Valerio <pvalerio@redhat.com>\n---\nv2:\n- fixed NEIGH_ENTRY_MAX_AGEING_TIME (turned to seconds) correcting a\n  leftover.\n- turned relaxed atomics to acq/rel.\n- added range checks to tunnel-push-pop.at. It was useless to\n  duplicate the test for both ipv6 and ipv4, so only the latter\n  includes it.\n- slightly modified the NEWS entry.\n---\n NEWS                            |    2 +\n lib/tnl-neigh-cache.c           |   79 +++++++++++++++++++++++++++++++++++----\n ofproto/ofproto-tnl-unixctl.man |    9 ++++\n tests/tunnel-push-pop-ipv6.at   |   30 +++++++++++++++\n tests/tunnel-push-pop.at        |   47 +++++++++++++++++++++++\n 5 files changed, 158 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/NEWS b/NEWS\nindex 434ee570f..1aa233a0d 100644\n--- a/NEWS\n+++ b/NEWS\n@@ -16,6 +16,8 @@ Post-v2.16.0\n    - ovs-dpctl and 'ovs-appctl dpctl/':\n      * New commands 'cache-get-size' and 'cache-set-size' that allows to\n        get or configure linux kernel datapath cache sizes.\n+   - ovs-appctl:\n+     * New command tnl/neigh/aging to read/write the neigh aging time.\n \n \n v2.16.0 - 16 Aug 2021\ndiff --git a/lib/tnl-neigh-cache.c b/lib/tnl-neigh-cache.c\nindex 1e6cc31db..a4d56e4cc 100644\n--- a/lib/tnl-neigh-cache.c\n+++ b/lib/tnl-neigh-cache.c\n@@ -46,6 +46,7 @@\n \n \n #define NEIGH_ENTRY_DEFAULT_IDLE_TIME_MS  (15 * 60 * 1000)\n+#define NEIGH_ENTRY_MAX_AGING_TIME  3600\n \n struct tnl_neigh_entry {\n     struct cmap_node cmap_node;\n@@ -57,6 +58,7 @@ struct tnl_neigh_entry {\n \n static struct cmap table = CMAP_INITIALIZER;\n static struct ovs_mutex mutex = OVS_MUTEX_INITIALIZER;\n+static atomic_uint32_t neigh_aging;\n \n static uint32_t\n tnl_neigh_hash(const struct in6_addr *ip)\n@@ -74,6 +76,15 @@ tnl_neigh_expired(struct tnl_neigh_entry *neigh)\n     return expires <= time_msec();\n }\n \n+static uint32_t\n+tnl_neigh_get_aging(void)\n+{\n+    unsigned int aging;\n+\n+    atomic_read_explicit(&neigh_aging, &aging, memory_order_acquire);\n+    return aging;\n+}\n+\n static struct tnl_neigh_entry *\n tnl_neigh_lookup__(const char br_name[IFNAMSIZ], const struct in6_addr *dst)\n {\n@@ -88,7 +99,7 @@ tnl_neigh_lookup__(const char br_name[IFNAMSIZ], const struct in6_addr *dst)\n             }\n \n             atomic_store_explicit(&neigh->expires, time_msec() +\n-                                  NEIGH_ENTRY_DEFAULT_IDLE_TIME_MS,\n+                                  tnl_neigh_get_aging(),\n                                   memory_order_release);\n             return neigh;\n         }\n@@ -134,7 +145,7 @@ tnl_neigh_set__(const char name[IFNAMSIZ], const struct in6_addr *dst,\n     if (neigh) {\n         if (eth_addr_equals(neigh->mac, mac)) {\n             atomic_store_relaxed(&neigh->expires, time_msec() +\n-                                 NEIGH_ENTRY_DEFAULT_IDLE_TIME_MS);\n+                                 tnl_neigh_get_aging());\n             ovs_mutex_unlock(&mutex);\n             return;\n         }\n@@ -147,7 +158,7 @@ tnl_neigh_set__(const char name[IFNAMSIZ], const struct in6_addr *dst,\n     neigh->ip = *dst;\n     neigh->mac = mac;\n     atomic_store_relaxed(&neigh->expires, time_msec() +\n-                         NEIGH_ENTRY_DEFAULT_IDLE_TIME_MS);\n+                         tnl_neigh_get_aging());\n     ovs_strlcpy(neigh->br_name, name, sizeof neigh->br_name);\n     cmap_insert(&table, &neigh->cmap_node, tnl_neigh_hash(&neigh->ip));\n     ovs_mutex_unlock(&mutex);\n@@ -273,6 +284,45 @@ tnl_neigh_cache_flush(struct unixctl_conn *conn, int argc OVS_UNUSED,\n     unixctl_command_reply(conn, \"OK\");\n }\n \n+static void\n+tnl_neigh_cache_aging(struct unixctl_conn *conn, int argc,\n+                        const char *argv[], void *aux OVS_UNUSED)\n+{\n+    long long int new_exp, curr_exp;\n+    struct tnl_neigh_entry *neigh;\n+    uint32_t aging;\n+\n+    if (argc == 1) {\n+        struct ds ds = DS_EMPTY_INITIALIZER;\n+        ds_put_format(&ds, \"%\"PRIu32, tnl_neigh_get_aging() / 1000);\n+        unixctl_command_reply(conn, ds_cstr(&ds));\n+        ds_destroy(&ds);\n+\n+        return;\n+    }\n+\n+    if (!ovs_scan(argv[1], \"%\"SCNu32, &aging) ||\n+        !aging || aging > NEIGH_ENTRY_MAX_AGING_TIME) {\n+        unixctl_command_reply_error(conn, \"bad aging value\");\n+        return;\n+    }\n+\n+    aging *= 1000;\n+    atomic_store_explicit(&neigh_aging, aging, memory_order_release);\n+    new_exp = time_msec() + aging;\n+\n+    CMAP_FOR_EACH (neigh, cmap_node, &table) {\n+        atomic_read_explicit(&neigh->expires, &curr_exp,\n+                             memory_order_acquire);\n+        if (new_exp < curr_exp) {\n+            atomic_store_explicit(&neigh->expires, new_exp,\n+                                  memory_order_release);\n+        }\n+    }\n+\n+    unixctl_command_reply(conn, \"OK\");\n+}\n+\n static int\n lookup_any(const char *host_name, struct in6_addr *address)\n {\n@@ -347,10 +397,21 @@ tnl_neigh_cache_show(struct unixctl_conn *conn, int argc OVS_UNUSED,\n void\n tnl_neigh_cache_init(void)\n {\n-    unixctl_command_register(\"tnl/arp/show\", \"\", 0, 0, tnl_neigh_cache_show, NULL);\n-    unixctl_command_register(\"tnl/arp/set\", \"BRIDGE IP MAC\", 3, 3, tnl_neigh_cache_add, NULL);\n-    unixctl_command_register(\"tnl/arp/flush\", \"\", 0, 0, tnl_neigh_cache_flush, NULL);\n-    unixctl_command_register(\"tnl/neigh/show\", \"\", 0, 0, tnl_neigh_cache_show, NULL);\n-    unixctl_command_register(\"tnl/neigh/set\", \"BRIDGE IP MAC\", 3, 3, tnl_neigh_cache_add, NULL);\n-    unixctl_command_register(\"tnl/neigh/flush\", \"\", 0, 0, tnl_neigh_cache_flush, NULL);\n+    atomic_init(&neigh_aging, NEIGH_ENTRY_DEFAULT_IDLE_TIME_MS);\n+    unixctl_command_register(\"tnl/arp/show\", \"\", 0, 0,\n+                             tnl_neigh_cache_show, NULL);\n+    unixctl_command_register(\"tnl/arp/set\", \"BRIDGE IP MAC\", 3, 3,\n+                             tnl_neigh_cache_add, NULL);\n+    unixctl_command_register(\"tnl/arp/flush\", \"\", 0, 0,\n+                             tnl_neigh_cache_flush, NULL);\n+    unixctl_command_register(\"tnl/arp/aging\", \"[SECS]\", 0, 1,\n+                             tnl_neigh_cache_aging, NULL);\n+    unixctl_command_register(\"tnl/neigh/show\", \"\", 0, 0,\n+                             tnl_neigh_cache_show, NULL);\n+    unixctl_command_register(\"tnl/neigh/set\", \"BRIDGE IP MAC\", 3, 3,\n+                             tnl_neigh_cache_add, NULL);\n+    unixctl_command_register(\"tnl/neigh/flush\", \"\", 0, 0,\n+                             tnl_neigh_cache_flush, NULL);\n+    unixctl_command_register(\"tnl/neigh/aging\", \"[SECS]\", 0, 1,\n+                             tnl_neigh_cache_aging, NULL);\n }\ndiff --git a/ofproto/ofproto-tnl-unixctl.man b/ofproto/ofproto-tnl-unixctl.man\nindex c70cca539..13a465119 100644\n--- a/ofproto/ofproto-tnl-unixctl.man\n+++ b/ofproto/ofproto-tnl-unixctl.man\n@@ -27,6 +27,15 @@ to \\fImac\\fR.\n .IP \"\\fBtnl/arp/flush\\fR\"\n Flush ARP table.\n .\n+.IP \"\\fBtnl/neigh/aging [\\fIseconds\\fB]\\fR\"\n+.IP \"\\fBtnl/arp/aging [\\fIseconds\\fB]\\fR\"\n+Changes the aging time. The accepted values of \\fIseconds\\fR are\n+between 1 and 3600. The new entries will get the value as specified in\n+\\fIseconds\\fR. For the existing entries, the aging time is updated\n+only if the current expiration is greater than \\fIseconds\\fR.\n+.IP\n+If used without arguments, it prints the current aging value.\n+.\n .IP \"\\fBtnl/egress_port_range [num1] [num2]\\fR\"\n Set range for UDP source port used for UDP based Tunnels. For\n example VxLAN. If case of zero arguments this command prints\ndiff --git a/tests/tunnel-push-pop-ipv6.at b/tests/tunnel-push-pop-ipv6.at\nindex 59723e63b..327c0e61e 100644\n--- a/tests/tunnel-push-pop-ipv6.at\n+++ b/tests/tunnel-push-pop-ipv6.at\n@@ -255,6 +255,36 @@ AT_CHECK([cat p0.pcap.txt | grep 93aa55aa55000086dd6000000000203aff2001cafe | un\n 3333ff000093aa55aa55000086dd6000000000203aff2001cafe000000000000000000000088ff0200000000000000000001ff00009387004d46000000002001cafe0000000000000000000000930101aa55aa550000\n ])\n \n+dnl Set the aging time to 5 seconds\n+AT_CHECK([ovs-appctl tnl/neigh/aging 5], [0], [OK\n+])\n+\n+dnl Read the current aging time\n+AT_CHECK([ovs-appctl tnl/neigh/aging], [0], [5\n+])\n+\n+dnl Add an entry\n+AT_CHECK([ovs-appctl tnl/neigh/set br0 2001:cafe::92 aa:bb:cc:00:00:01], [0], [OK\n+])\n+\n+AT_CHECK([ovs-appctl tnl/neigh/show | grep br0 | sort], [0], [dnl\n+2001:cafe::92                                 aa:bb:cc:00:00:01   br0\n+])\n+\n+ovs-appctl time/warp 5000\n+\n+dnl Check the entry has been removed\n+AT_CHECK([ovs-appctl tnl/neigh/show | grep br0 | sort], [0], [dnl\n+])\n+\n+dnl Restore the aging time to 900s (default)\n+AT_CHECK([ovs-appctl tnl/neigh/aging 900], [0], [OK\n+])\n+\n+dnl Read the current aging time\n+AT_CHECK([ovs-appctl tnl/neigh/aging], [0], [900\n+])\n+\n dnl Check ARP Snoop\n AT_CHECK([ovs-appctl netdev-dummy/receive p0 'in_port(1),eth(src=f8:bc:12:44:34:c8,dst=aa:55:aa:55:00:00),eth_type(0x86dd),ipv6(src=2001:cafe::92,dst=2001:cafe::88,label=0,proto=58,tclass=0,hlimit=255,frag=no),icmpv6(type=136,code=0),nd(target=2001:cafe::92,sll=00:00:00:00:00:00,tll=f8:bc:12:44:34:c8)'])\n \ndiff --git a/tests/tunnel-push-pop.at b/tests/tunnel-push-pop.at\nindex 636465397..1f6249b20 100644\n--- a/tests/tunnel-push-pop.at\n+++ b/tests/tunnel-push-pop.at\n@@ -270,6 +270,53 @@ AT_CHECK([cat p0.pcap.txt | grep 101025d | uniq], [0], [dnl\n ffffffffffffaa55aa55000008060001080006040001aa55aa550000010102580000000000000101025d\n ])\n \n+dnl Check input range\n+AT_CHECK([ovs-appctl tnl/neigh/aging 0], [2], [], [dnl\n+bad aging value\n+ovs-appctl: ovs-vswitchd: server returned an error\n+])\n+\n+AT_CHECK([ovs-appctl tnl/neigh/aging 3601], [2], [], [dnl\n+bad aging value\n+ovs-appctl: ovs-vswitchd: server returned an error\n+])\n+\n+AT_CHECK([ovs-appctl tnl/neigh/aging 1], [0], [OK\n+])\n+\n+AT_CHECK([ovs-appctl tnl/neigh/aging 3600], [0], [OK\n+])\n+\n+dnl Set the aging time to 5 seconds\n+AT_CHECK([ovs-appctl tnl/neigh/aging 5], [0], [OK\n+])\n+\n+dnl Read the current aging time\n+AT_CHECK([ovs-appctl tnl/neigh/aging], [0], [5\n+])\n+\n+dnl Add an entry\n+AT_CHECK([ovs-appctl tnl/neigh/set br0 1.1.2.92 aa:bb:cc:00:00:01], [0], [OK\n+])\n+\n+AT_CHECK([ovs-appctl tnl/neigh/show | grep br0 | sort], [0], [dnl\n+1.1.2.92                                      aa:bb:cc:00:00:01   br0\n+])\n+\n+ovs-appctl time/warp 5000\n+\n+dnl Check the entry has been removed\n+AT_CHECK([ovs-appctl tnl/neigh/show | grep br0 | sort], [0], [dnl\n+])\n+\n+dnl Restore the aging time to 900s (default)\n+AT_CHECK([ovs-appctl tnl/neigh/aging 900], [0], [OK\n+])\n+\n+dnl Read the current aging time\n+AT_CHECK([ovs-appctl tnl/neigh/aging], [0], [900\n+])\n+\n dnl Check ARP Snoop\n AT_CHECK([ovs-appctl netdev-dummy/receive p0 'recirc_id(0),in_port(1),eth(src=f8:bc:12:44:34:c8,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=1.1.2.92,tip=1.1.2.88,op=2,sha=f8:bc:12:44:34:c8,tha=00:00:00:00:00:00)'])\n \n",
    "prefixes": [
        "ovs-dev",
        "v2",
        "2/4"
    ]
}