From 64a21f3995c7b078bad604b2f51464f0e05a7b10 Mon Sep 17 00:00:00 2001 From: Donghun Cha Date: Wed, 9 Sep 2020 06:11:59 +0000 Subject: [PATCH] Add missing argument in UpdateVNFFG at ../nfvo/vnffg.py Currently in tacker, updating the VNFFG that already exist has a problem like below Closes-Bug #1894945. To fix it, add argument of '--param-file' and it works properly Change-Id: I3f71c187fade9cd8b69a7131f274872975adf17c Closes-Bug: #1894945 --- tackerclient/osc/v1/nfvo/vnffg.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tackerclient/osc/v1/nfvo/vnffg.py b/tackerclient/osc/v1/nfvo/vnffg.py index 72dec716..c54431c9 100644 --- a/tackerclient/osc/v1/nfvo/vnffg.py +++ b/tackerclient/osc/v1/nfvo/vnffg.py @@ -251,6 +251,9 @@ class UpdateVNFFG(command.ShowOne): parser.add_argument( '--description', help=_('Set a description for the VNFFG')) + parser.add_argument( + '--param-file', + help=_('YAML file with specific VNFFG parameters')) return parser def args2body(self, parsed_args): @@ -294,7 +297,7 @@ class UpdateVNFFG(command.ShowOne): raise exceptions.InvalidInput( reason='The parameter file is empty') body[_VNFFG]['attributes'] = {'param_values': param_yaml} - tackerV10.update_dict(parsed_args, body[self.resource], + tackerV10.update_dict(parsed_args, body[_VNFFG], ['vnf_mapping', 'symmetrical', 'description']) return body