neutron/neutron
Kevin Benton a19029d3d6 Get rid of marshall_fdb_entries
This function isn't necessary. The json encoding of a
named tuple will already turn into a normal list.

ports = [l2pop_rpc.PortInfo('abcdef', '1.1.1.1')]
json.dumps(ports) == json.dumps([(mac, ip) for (mac, ip) in ports])

An argument could be made that the PortInfo object could have
something added to it later that we wouldn't want to serialize
in order to remain backward compatible. However, doing so would
break all of the constructions of PortInfo objects on the agents
once they got the updated code for PortInfo that requires the
new parameter.

So there is no way currently to add a new field to PortInfo without
breaking existing legacy clients or breaking new clients.
Given that, let's stop doing the json encoder's job.

This patch also adds a sanity unit test to make sure the json
serialization method used in oslo does not break on the named tuples.

Change-Id: I45ae69ef8c9c15ad21a28dc42f2d78b234ccfb0c
2016-02-03 00:16:45 -08:00
..
agent Merge "Increase default IPv6 router advertisement interval" 2016-01-28 12:47:32 +00:00
api Merge "Fail if required extensions are missing" 2016-01-30 17:21:25 +00:00
callbacks Add L3 Notifications To Enable BGP Dynamic Routing 2016-01-20 16:37:49 +00:00
cmd Make neutron pecan server an option instead of binary 2016-01-14 18:25:13 -08:00
common Merge "Fix module's import order" 2016-01-23 07:46:22 +00:00
core_extensions Forbid attaching rules if policy isn't accessible 2015-08-12 09:52:33 +00:00
db Merge "Add UniqueConstraint in L3HARouterAgentPortBinding" 2016-02-01 05:33:08 +00:00
debug Make neutron-debug command follow cliff command convention 2016-01-09 03:38:19 +09:00
extensions Fix required extensions mix-up 2016-01-28 15:42:58 -08:00
hacking Unify using assertIsInstance 2016-01-15 00:06:03 +08:00
ipam Fix module's import order 2016-01-22 06:38:42 -08:00
locale Imported Translations from Zanata 2016-01-19 06:21:49 +00:00
notifiers Add option for nova endpoint type 2015-12-10 08:40:36 +00:00
objects db_api: handle db objects that don't have 'id' as primary key 2016-01-21 19:23:14 +00:00
openstack Fix module's import order 2016-01-22 06:38:42 -08:00
pecan_wsgi Pecan: remove deprecated warning 2016-01-22 18:23:20 -08:00
plugins Get rid of marshall_fdb_entries 2016-02-03 00:16:45 -08:00
quota ML2: Add tests to validate quota usage tracking 2015-12-09 15:17:23 -08:00
scheduler Add UniqueConstraint in L3HARouterAgentPortBinding 2016-01-29 19:47:45 +03:00
server Fix module's import order 2016-01-22 06:38:42 -08:00
services External DNS driver reference implementation 2016-01-21 21:55:08 +00:00
tests Get rid of marshall_fdb_entries 2016-02-03 00:16:45 -08:00
__init__.py Deprecate _ builtin translation function 2015-12-06 19:39:20 +09:00
_i18n.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
auth.py Consume ConfigurableMiddleware from oslo_middleware 2015-10-08 17:59:43 +00:00
context.py Trival: Remove unused logging import 2015-12-26 12:49:56 +08:00
i18n.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
manager.py Pecan controller loads service plugins 2016-01-12 12:28:54 -08:00
neutron_plugin_base_v2.py Fix module's import order 2016-01-22 06:38:42 -08:00
opts.py lb: ml2-agt: Separate AgentLoop from LinuxBridge specific impl 2016-01-28 11:00:43 +01:00
policy.py Raise RetryRequest on policy parent not found 2016-01-27 05:23:38 -08:00
service.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
version.py
worker.py Some minor misspellings in comment block. 2015-11-24 00:01:21 -06:00
wsgi.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00