naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0199-ip-link-Add-group-in-usage-for-ip-link-delete.patch

049c96
From 9502dd16d7623bd5c40b34a38dae7c8118bba9e6 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Wed, 20 Jul 2016 22:54:33 +0200
049c96
Subject: [PATCH] ip link: Add group in usage() for 'ip link delete'
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1269528
049c96
Upstream Status: iproute2.git commit 8916ccf66cec5
049c96
049c96
commit 8916ccf66cec59e4e1c1bd4d79a9342b0569d89c
049c96
Author: Vadim Kochan <vadim4j@gmail.com>
049c96
Date:   Fri May 1 22:26:52 2015 +0300
049c96
049c96
    ip link: Add group in usage() for 'ip link delete'
049c96
049c96
    Show deleting by group in 'ip link help' output:
049c96
049c96
    ...
049c96
    ip link delete { DEVICE | dev DEVICE | group DEVGROUP } type TYPE [ ARGS ]
049c96
    ...
049c96
049c96
    Also show separately DEVICE option in { } list.
049c96
049c96
    Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
049c96
---
049c96
 ip/iplink.c | 4 ++--
049c96
 1 file changed, 2 insertions(+), 2 deletions(-)
049c96
049c96
diff --git a/ip/iplink.c b/ip/iplink.c
049c96
index 0e2390d..619556c 100644
049c96
--- a/ip/iplink.c
049c96
+++ b/ip/iplink.c
049c96
@@ -53,9 +53,9 @@ void iplink_usage(void)
049c96
 		fprintf(stderr, "                   [ numtxqueues QUEUE_COUNT ]\n");
049c96
 		fprintf(stderr, "                   [ numrxqueues QUEUE_COUNT ]\n");
049c96
 		fprintf(stderr, "                   type TYPE [ ARGS ]\n");
049c96
-		fprintf(stderr, "       ip link delete DEV type TYPE [ ARGS ]\n");
049c96
+		fprintf(stderr, "       ip link delete { DEVICE | dev DEVICE | group DEVGROUP } type TYPE [ ARGS ]\n");
049c96
 		fprintf(stderr, "\n");
049c96
-		fprintf(stderr, "       ip link set { dev DEVICE | group DEVGROUP } [ { up | down } ]\n");
049c96
+		fprintf(stderr, "       ip link set { DEVICE | dev DEVICE | group DEVGROUP } [ { up | down } ]\n");
049c96
 	} else
049c96
 		fprintf(stderr, "Usage: ip link set DEVICE [ { up | down } ]\n");
049c96
 
049c96
-- 
049c96
1.8.3.1
049c96