neutron/neutron/tests/unit/openvswitch
Salvatore Orlando 3d24fe5710 Parse JSON in ovs_lib.get_vif_port_by_id
This patch replaces regex matching of text output with parsing
of JSON output in ovs_lib.get_vif_port_by_id.
This makes the code more reliable as subtle, possibly even
cosmetic, changes in ovs-vsctl output format could cause the
regular expression match to fail.

Also, this makes the code consistent with ovs_lib.get_vif_port_set
which already uses JSON output.

Finally this patch slightly changes the behaviour of
ovs_lib.get_vif_port_by_id returning None if elements such as
mac address or ofport were not available.

Change-Id: Ia985a130739c72b5b88414a79b2c6083ca6a0a00
Closes-Bug: #1280827
2014-02-16 15:55:18 -08:00
..
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_agent_scheduler.py Utilizes assertIsNone and assertIsNotNone 2013-10-03 23:01:48 +00:00
test_openvswitch_plugin.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_ovs_db.py Ensure OVS plugin is loaded in OVS plugin test 2013-10-26 20:52:15 +09:00
test_ovs_defaults.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_ovs_lib.py Parse JSON in ovs_lib.get_vif_port_by_id 2014-02-16 15:55:18 -08:00
test_ovs_neutron_agent.py Avoid processing ports which are not yet ready 2014-02-13 15:38:05 -08:00
test_ovs_rpcapi.py Replace stubout with fixtures 2013-11-24 10:46:08 -05:00
test_ovs_security_group.py Merge "Utilizes assertIsNone and assertIsNotNone" 2013-10-26 01:37:25 +00:00
test_ovs_tunnel.py Avoid re-wiring ports unnecessarily 2014-02-05 01:45:48 -05:00