vmware-nsx/neutron/agent
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
..
common Tune up report and downtime intervals for l2 agent 2013-11-14 08:16:44 -08:00
linux Parse JSON in ovs_lib.get_vif_port_by_id 2014-02-16 15:55:18 -08:00
metadata Use save_and_reraise_exception when reraise exception 2014-02-14 00:15:37 +09:00
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
dhcp_agent.py Remove release_lease from the DHCP driver interface 2014-01-15 17:02:50 +00:00
firewall.py Apply six for metaclass 2013-11-18 17:58:58 +09:00
l2population_rpc.py Apply six for metaclass 2013-11-18 17:58:58 +09:00
l3_agent.py Use save_and_reraise_exception when reraise exception 2014-02-14 00:15:37 +09:00
netns_cleanup_util.py Improve dhcp agent structure to support multiple dhcp models 2013-08-23 13:41:31 -07:00
ovs_cleanup_util.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
rpc.py change port status only if port is bound to the good host 2013-10-02 15:14:18 +02:00
securitygroups_rpc.py Skip extra logging when devices is empty 2014-02-10 00:20:31 +08:00