Fix in osm.py: vnf-scale parameters 87/6987/3
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 28 Nov 2018 13:51:18 +0000 (14:51 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 28 Nov 2018 14:26:40 +0000 (15:26 +0100)
Change-Id: I92da723a32190d00cd967e139d803be3af69acda
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/scripts/osm.py

index 625defe..c80c3eb 100755 (executable)
@@ -1568,23 +1568,24 @@ def ns_action(ctx,
 
 
 @cli.command(name='vnf-scale')
-@click.argument('ns_name' )
-@click.option('vnf-name', prompt=True, help="member-vnf-index to scale")
+@click.argument('ns_name')
+@click.argument('vnf_name')
 @click.option('--scaling-group', prompt=True, help="scaling-group-descriptor name to use")
 @click.option('--scale-in', default=False, is_flag=True, help="performs a scale in operation")
 @click.option('--scale-out', default=False, is_flag=True, help="performs a scale out operation (by default)")
 @click.pass_context
-def ns_scale_vdu(ctx,
+def vnf_scale(ctx,
               ns_name,
               vnf_name,
               scaling_group,
               scale_in,
               scale_out):
-    """executes a VNF scale (adding/removing VDUs)
+    '''executes a VNF scale (adding/removing VDUs)
 
-    NS_NAME: name or ID of the NS instance
-    VNF_NAME: member-vnf-index in the NS to be scaled
-    """
+    \b
+    NS_NAME: name or ID of the NS instance.
+    VNF_NAME: member-vnf-index in the NS to be scaled.
+    '''
     try:
         check_client_version(ctx.obj, ctx.command.name)
         if not scale_in and not scale_out: