remove to_dict method of Network in neutron.py

because network['subnets'] is a list of str.

Closes-Bug: #1650097
Change-Id: I55b0c81706051410d7368a067106ff3d821d7b47
This commit is contained in:
jiangpch 2016-12-15 11:20:43 +08:00
parent 79e86e8900
commit d85a5b4b5d
1 changed files with 0 additions and 5 deletions

View File

@ -98,11 +98,6 @@ class Agent(NeutronAPIDictWrapper):
class Network(NeutronAPIDictWrapper):
"""Wrapper for neutron Networks."""
def to_dict(self):
d = dict(super(NeutronAPIDictWrapper, self).to_dict())
d['subnets'] = [s.to_dict() for s in d['subnets']]
return d
class Subnet(NeutronAPIDictWrapper):
"""Wrapper for neutron subnets."""