]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
nexthop: Fix usage output
authorIdo Schimmel <idosch@nvidia.com>
Thu, 7 Jan 2021 15:23:26 +0000 (17:23 +0200)
committerDavid Ahern <dsahern@kernel.org>
Sun, 10 Jan 2021 17:14:08 +0000 (17:14 +0000)
Before:

 # ip nexthop help
 Usage: ip nexthop { list | flush } [ protocol ID ] SELECTOR
        ip nexthop { add | replace } id ID NH [ protocol ID ]
        ip nexthop { get| del } id ID
 SELECTOR := [ id ID ] [ dev DEV ] [ vrf NAME ] [ master DEV ]
             [ groups ] [ fdb ]
 NH := { blackhole | [ via ADDRESS ] [ dev DEV ] [ onlink ]
       [ encap ENCAPTYPE ENCAPHDR ] | group GROUP ] }
 GROUP := [ id[,weight]>/<id[,weight]>/... ]
 ENCAPTYPE := [ mpls ]
 ENCAPHDR := [ MPLSLABEL ]

After:

 # ip nexthop help
 Usage: ip nexthop { list | flush } [ protocol ID ] SELECTOR
        ip nexthop { add | replace } id ID NH [ protocol ID ]
        ip nexthop { get | del } id ID
 SELECTOR := [ id ID ] [ dev DEV ] [ vrf NAME ] [ master DEV ]
             [ groups ] [ fdb ]
 NH := { blackhole | [ via ADDRESS ] [ dev DEV ] [ onlink ]
         [ encap ENCAPTYPE ENCAPHDR ] | group GROUP [ fdb ] }
 GROUP := [ <id[,weight]>/<id[,weight]>/... ]
 ENCAPTYPE := [ mpls ]
 ENCAPHDR := [ MPLSLABEL ]

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipnexthop.c

index b7ffff77c160f6adac8a5e0df4482e9cde475589..20cde586596b7434b94749b074f5785f742a3459 100644 (file)
@@ -38,12 +38,12 @@ static void usage(void)
        fprintf(stderr,
                "Usage: ip nexthop { list | flush } [ protocol ID ] SELECTOR\n"
                "       ip nexthop { add | replace } id ID NH [ protocol ID ]\n"
-               "       ip nexthop { get| del } id ID\n"
+               "       ip nexthop { get | del } id ID\n"
                "SELECTOR := [ id ID ] [ dev DEV ] [ vrf NAME ] [ master DEV ]\n"
                "            [ groups ] [ fdb ]\n"
                "NH := { blackhole | [ via ADDRESS ] [ dev DEV ] [ onlink ]\n"
-               "      [ encap ENCAPTYPE ENCAPHDR ] | group GROUP ] }\n"
-               "GROUP := [ id[,weight]>/<id[,weight]>/... ]\n"
+               "        [ encap ENCAPTYPE ENCAPHDR ] | group GROUP [ fdb ] }\n"
+               "GROUP := [ <id[,weight]>/<id[,weight]>/... ]\n"
                "ENCAPTYPE := [ mpls ]\n"
                "ENCAPHDR := [ MPLSLABEL ]\n");
        exit(-1);