[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231211140732.11475-2-bpoirier@nvidia.com>
Date: Mon, 11 Dec 2023 09:07:13 -0500
From: Benjamin Poirier <bpoirier@...dia.com>
To: netdev@...r.kernel.org
Cc: Petr Machata <petrm@...dia.com>,
Roopa Prabhu <roopa@...dia.com>
Subject: [PATCH iproute2-next 01/20] bridge: vni: Accept 'del' command
`bridge vni help` shows "bridge vni { add | del } ..." but currently
`bridge vni del ...` errors out unexpectedly:
# bridge vni del
Command "del" is unknown, try "bridge vni help".
Recognize 'del' as a synonym of the original 'delete' command.
Fixes: 45cd32f9f7d5 ("bridge: vxlan device vnifilter support")
Reviewed-by: Petr Machata <petrm@...dia.com>
Tested-by: Petr Machata <petrm@...dia.com>
Signed-off-by: Benjamin Poirier <bpoirier@...dia.com>
---
bridge/vni.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bridge/vni.c b/bridge/vni.c
index e804cb3f..6c0e35cd 100644
--- a/bridge/vni.c
+++ b/bridge/vni.c
@@ -419,7 +419,8 @@ int do_vni(int argc, char **argv)
if (argc > 0) {
if (strcmp(*argv, "add") == 0)
return vni_modify(RTM_NEWTUNNEL, argc-1, argv+1);
- if (strcmp(*argv, "delete") == 0)
+ if (strcmp(*argv, "delete") == 0 ||
+ strcmp(*argv, "del") == 0)
return vni_modify(RTM_DELTUNNEL, argc-1, argv+1);
if (strcmp(*argv, "show") == 0 ||
strcmp(*argv, "lst") == 0 ||
--
2.43.0
Powered by blists - more mailing lists