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
This commit is contained in:
Donghun Cha
2020-09-09 06:11:59 +00:00
parent 55ea58fea8
commit 64a21f3995

View File

@@ -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