From: Kouya Shimura Subject: [PATCH] xm: Fix xm network2-{attach,detach} Date: Wed, 14 Oct 2009 15:02:32 +0900 Message-ID: <7keip6ms1o.fsf@pingu.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="4QEWlxX+8M" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --4QEWlxX+8M Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit xm help doesn't work. Fixes in passing. - A comma is missing. - less help message. - typo. Signed-off-by: Kouya Shimura --4QEWlxX+8M Content-Type: text/x-patch Content-Disposition: inline; filename="xm_network2.patch" Content-Transfer-Encoding: 7bit diff -r 5d779377a9ae tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Mon Oct 12 12:56:00 2009 +0100 +++ b/tools/python/xen/xm/main.py Wed Oct 14 14:44:08 2009 +0900 @@ -184,7 +184,8 @@ SUBCOMMAND_HELP = { 'network2-attach': (' [front_mac=] [back_mac=] ' '[backend=] [trusted=<0|1>] ' '[back_trusted=<0|1>] [bridge=] ' - '[max_bypasses=n]' + '[filter_mac=<0|1>] [front_filter_mac=<0|1>] ' + '[pdev=] [max_bypasses=n]', 'Create a new version 2 virtual network device.'), 'network2-detach': (' [-f|--force]', 'Destroy a domain\'s version 2 virtual network device.'), @@ -2450,7 +2451,7 @@ def xm_block_configure(args): def xm_network2_attach(args): xenapi_unsupported() - arg_check(args, 'network2-attach', 1, 4) + arg_check(args, 'network2-attach', 1, 11) dom = args[0] vif = ['vif2'] vif_params = ['front_mac', 'back_mac', 'backend', 'trusted', @@ -2467,7 +2468,7 @@ def xm_network2_attach(args): def xm_network2_detach(args): xenapi_unsupported() - arg_check(args, "network2-detch", 2, 3) + arg_check(args, "network2-detach", 2, 3) detach(args, "vif2") def xm_network2_list(args): --4QEWlxX+8M Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --4QEWlxX+8M--