vnfd: name and description was not supported

make it pass to tacker server

Change-Id: I1b8ec2b45568a870782ca38e8930b2def38d163b
This commit is contained in:
Isaku Yamahata
2015-05-11 15:45:34 -07:00
parent 273e022e41
commit 584bb05ae9

View File

@@ -428,6 +428,9 @@ class Client(ClientBase):
'infra_driver': 'heat',
'mgmt_driver': 'noop',
}
KEY_LIST = ('name', 'description')
args_.update(dict((key, args[key])
for key in KEY_LIST if key in args))
body_ = {self._DEVICE_TEMPLATE: args_}
if 'vnfd' in args:
args_['attributes'] = {'vnfd': args['vnfd']}