From c5899991af05f2fb029a49e174f76d511937f34d Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 3 Dec 2018 18:52:07 +0100 Subject: [PATCH] new alias nf-list for vnf-list Change-Id: I0d1c516a2e2185ff9ce88a107b1d9e3f6cf316b0 Signed-off-by: garciadeblas --- osmclient/scripts/osm.py | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/osmclient/scripts/osm.py b/osmclient/scripts/osm.py index 8b9a43c..bbc187d 100755 --- a/osmclient/scripts/osm.py +++ b/osmclient/scripts/osm.py @@ -290,7 +290,7 @@ def vnfd_list(ctx, nf_type, filter): @click.pass_context def vnfd_list1(ctx, nf_type, filter): '''list all VNFD/VNFpkg in the system''' - vnfd_list(ctx,nf_type,filter) + vnfd_list(ctx, nf_type, filter) @cli.command(name='vnfpkg-list') @@ -300,7 +300,7 @@ def vnfd_list1(ctx, nf_type, filter): @click.pass_context def vnfd_list2(ctx, nf_type, filter): '''list all VNFD/VNFpkg in the system''' - vnfd_list(ctx,nf_type,filter) + vnfd_list(ctx, nf_type, filter) @cli.command(name='nfpkg-list') @@ -318,11 +318,6 @@ def nfpkg_list(ctx, nf_type, filter): exit(1) -@cli.command(name='vnf-list') -@click.option('--ns', default=None, help='NS instance id or name to restrict the VNF list') -@click.option('--filter', default=None, - help='restricts the list to the VNF instances matching the filter.') -@click.pass_context def vnf_list(ctx, ns, filter): '''list all VNF instances @@ -421,6 +416,25 @@ def vnf_list(ctx, ns, filter): table.align = 'l' print(table) + +@cli.command(name='vnf-list') +@click.option('--ns', default=None, help='NS instance id or name to restrict the NF list') +@click.option('--filter', default=None, + help='restricts the list to the NF instances matching the filter.') +@click.pass_context +def vnf_list1(ctx, ns, filter): + vnf_list(ctx, ns, filter) + + +@cli.command(name='nf-list') +@click.option('--ns', default=None, help='NS instance id or name to restrict the NF list') +@click.option('--filter', default=None, + help='restricts the list to the NF instances matching the filter.') +@click.pass_context +def nf_list(ctx, ns, filter): + vnf_list(ctx, ns, filter) + + @cli.command(name='ns-op-list') @click.argument('name') @click.pass_context -- 2.25.1