remove to_dict method of Network in neutron.py

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

Closes-Bug: #1650097
Change-Id: I55b0c81706051410d7368a067106ff3d821d7b47
(cherry picked from commit d85a5b4b5d)
This commit is contained in:
jiangpch 2016-12-15 11:20:43 +08:00 committed by Andrew Austin
parent bd8b21b966
commit 71b4787913
1 changed files with 0 additions and 5 deletions

View File

@ -97,11 +97,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."""