]> xenbits.xensource.com Git - xen.git/commitdiff
xl: Command line: Remove maximum argument limit for network-attach
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 17 Jul 2015 17:00:48 +0000 (18:00 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 21 Jul 2015 15:03:17 +0000 (16:03 +0100)
This limit of 11 has been in this function since it was written, but
serves no purpose.  The extra arguments are fed one by one to
parse_nic_config, and it is possible to have as many as you like.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/xl_cmdimpl.c

index 4e97449b298dbcf19880d3509d28a1fdfd0c596b..c2dc9281cd61b492bc31208c9ce166a01ddad94f 100644 (file)
@@ -6398,11 +6398,6 @@ int main_networkattach(int argc, char **argv)
         /* No options */
     }
 
-    if (argc-optind > 11) {
-        help("network-attach");
-        return 0;
-    }
-
     domid = find_domain(argv[optind]);
 
     config= xlu_cfg_init(stderr, "command line");