From 9549b32ff353bf0f3b8eead094884a2c88a28ef2 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 28 Nov 2018 14:51:18 +0100 Subject: [PATCH] Fix in osm.py: vnf-scale parameters Change-Id: I92da723a32190d00cd967e139d803be3af69acda Signed-off-by: garciadeblas --- osmclient/scripts/osm.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 625defe..c80c3eb 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -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: -- 2.17.1