Fix OVSBridge.get_port_ofport to handle empty output
Previously ovs_lib.OVSBridge.get_port_ofport() was not handling the
case where db_get_val() was returning None when no output was recieved
from ovs-vsctl. This patch ensures that the TypeError that results
from this condition is appropriately handled.
Reviewed: https:/ /review. openstack. org/104028 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=fc91e158f20 2112ae5cc576ad3 e3fa0f89deff1e
Committed: https:/
Submitter: Jenkins
Branch: master
commit fc91e158f202112 ae5cc576ad3e3fa 0f89deff1e
Author: Maru Newby <email address hidden>
Date: Tue Jul 1 23:51:15 2014 +0000
Fix OVSBridge. get_port_ ofport to handle empty output
Previously ovs_lib. OVSBridge. get_port_ ofport( ) was not handling the
case where db_get_val() was returning None when no output was recieved
from ovs-vsctl. This patch ensures that the TypeError that results
from this condition is appropriately handled.
Change-Id: I168eb0f2c6f0cb 98a3eb3e118972b baf0383ff89
Partial-bug: #1336172