Make return types consistent
Update a couple of utils functions related to router_gateways to ensure the return value is a boolean and not "None" Change-Id: Ie904b3010d44761421319080def79bc25eef9a7c
This commit is contained in:
parent
7dcf472c8b
commit
d935128ab3
|
@ -225,7 +225,7 @@ class OvsdbSbOvnIdl(sb_impl_idl.OvnSbApiIdlImpl, Backend):
|
|||
if port_info and port_info[0].chassis[0].name == chassis:
|
||||
return port_info[0].logical_port
|
||||
except IndexError:
|
||||
pass
|
||||
return False
|
||||
|
||||
def is_router_gateway_on_any_chassis(self, datapath):
|
||||
port_info = self.get_ports_on_datapath(
|
||||
|
@ -234,7 +234,7 @@ class OvsdbSbOvnIdl(sb_impl_idl.OvnSbApiIdlImpl, Backend):
|
|||
if port_info and port_info[0].chassis[0].name:
|
||||
return port_info[0]
|
||||
except IndexError:
|
||||
pass
|
||||
return False
|
||||
|
||||
def get_lrp_port_for_datapath(self, datapath):
|
||||
for row in self.get_ports_on_datapath(
|
||||
|
|
Loading…
Reference in New Issue