OVO MACAddress field isn't serializable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Kevin Benton |
Bug Description
The OVO MACAddress field can't be serialized to JSON because it is represented as a EUI object from netaddr without a to_primitive method.
This is what happens if you try to json encode an EUI object.
>>> json.dumps(
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
return _default_
File "/usr/lib/
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/
return _iterencode(o, 0)
File "/usr/lib/
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: EUI('AA-
Changed in neutron: | |
assignee: | nobody → Kevin Benton (kevinbenton) |
tags: | added: neutron-proactive-backport-potential |
tags: | removed: neutron-proactive-backport-potential |
Fix proposed to branch: master /review. openstack. org/392931
Review: https:/