Merge "Fixes symmetrical for vnffg update"

This commit is contained in:
Zuul 2017-10-16 03:10:45 +00:00 committed by Gerrit Code Review
commit 3e31720ed6
2 changed files with 5 additions and 2 deletions

View File

@ -170,7 +170,9 @@ class UpdateVNFFG(tackerV10.UpdateCommand):
help=_('List of logical VNFD name to VNF instance name mapping. '
'Example: VNF1:my_vnf1,VNF2:my_vnf2'))
parser.add_argument(
'--symmetrical', metavar='{True,False}',
'--symmetrical',
action='store_true',
default=False,
help=_('Should a reverse path be created for the NFP'))
def args2body(self, parsed_args):

View File

@ -98,7 +98,8 @@ class CLITestV10VmVNFFGJSON(test_cli10.CLITestV10Base):
value = 'new-value'
self._test_update_resource(self._RESOURCE, cmd, my_id,
[my_id, '--%s' % key, value],
{key: value}, get_client_called_count=2)
{'symmetrical': False, key: value},
get_client_called_count=2)
def test_delete_vnffg(self):
cmd = vnffg.DeleteVNFFG(test_cli10.MyApp(sys.stdout), None)