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:
@@ -251,6 +251,9 @@ class UpdateVNFFG(command.ShowOne):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--description',
|
'--description',
|
||||||
help=_('Set a description for the VNFFG'))
|
help=_('Set a description for the VNFFG'))
|
||||||
|
parser.add_argument(
|
||||||
|
'--param-file',
|
||||||
|
help=_('YAML file with specific VNFFG parameters'))
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def args2body(self, parsed_args):
|
def args2body(self, parsed_args):
|
||||||
@@ -294,7 +297,7 @@ class UpdateVNFFG(command.ShowOne):
|
|||||||
raise exceptions.InvalidInput(
|
raise exceptions.InvalidInput(
|
||||||
reason='The parameter file is empty')
|
reason='The parameter file is empty')
|
||||||
body[_VNFFG]['attributes'] = {'param_values': param_yaml}
|
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'])
|
['vnf_mapping', 'symmetrical', 'description'])
|
||||||
return body
|
return body
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user