allow customizing network configure

change network update process to allow user add
configurations in network.yaml

Change-Id: Ie2add73e106fa672fc0612314f98505de93771fe
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
This commit is contained in:
SerenaFeng 2017-03-29 13:46:57 +08:00
parent 8369ca2102
commit 5eaa09b2d0
1 changed files with 0 additions and 5 deletions

View File

@ -309,11 +309,6 @@ class NetworkManager(base.ManagerWithFind):
for field in kwargs:
if field in UPDATE_PARAMS:
fields[field] = kwargs[field]
elif field == 'return_req_id':
continue
else:
msg = 'update() got an unexpected keyword argument \'%s\''
raise TypeError(msg % field)
hdrs.update(self._network_meta_to_headers(fields))
url = '/v1/networks/%s' % base.getid(network)