neutron/neutron/tests/unit/plugins/ml2/drivers
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 lb: ml2-agt: Separate AgentLoop from LinuxBridge specific impl 2016-01-28 11:00:43 +01:00
l2pop Get rid of marshall_fdb_entries 2016-02-03 00:16:45 -08:00
linuxbridge lb: ml2-agt: Separate AgentLoop from LinuxBridge specific impl 2016-01-28 11:00:43 +01:00
mech_sriov Merge "sriov-mech: Introduce a new VIF type for PF vnic type" 2016-01-27 18:46:26 +00:00
openvswitch Uniquely identify tunnel interfaces for fullstack tests 2016-01-28 15:12:40 -05:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
base_type_tunnel.py Fix hostname roaming for ml2 tunnel endpoints. 2015-09-21 12:50:00 +02:00
ext_test.py Fix module's import order 2016-01-22 06:38:42 -08:00
mech_fake_agent.py Trival: Remove unused logging import 2015-12-26 12:49:56 +08:00
mechanism_logger.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
mechanism_test.py Add network to SubnetContext 2015-08-17 05:35:20 +00:00
test_helpers.py Adopt oslotest BaseTestCase as a base class for DietTestCase 2016-01-07 15:08:54 +01:00
test_type_flat.py Make '*' the default ml2 flat_networks configuration 2015-11-06 14:16:32 +00:00
test_type_geneve.py Add Geneve type driver support to ML2 2015-08-27 20:04:35 +03:00
test_type_gre.py Abstract sync_allocations 2015-06-25 09:12:54 +00:00
test_type_local.py Reorganize plugin test modules 2015-04-07 00:55:25 +00:00
test_type_vlan.py Reorganize plugin test modules 2015-04-07 00:55:25 +00:00
test_type_vxlan.py Remove extra indent in testcases 2015-06-02 17:35:44 -07:00