Cleanup DVR SNAT port list creation code
port_list is already an empty list if no SNAT ports were found, no reason to re-initialize or print it. Trivialfix Change-Id: I0589266646dfa0bc42ef6b7e6929f4dc2237f2b6
This commit is contained in:
parent
376fa8aef4
commit
b593a4914c
|
@ -247,14 +247,12 @@ class DVRResourceOperationHandler(object):
|
|||
if port_list:
|
||||
self._populate_mtu_and_subnets_for_ports(context, port_list)
|
||||
return port_list
|
||||
port_list = []
|
||||
|
||||
int_ports = (
|
||||
rp.port for rp in router.attached_ports
|
||||
if rp.port_type == const.DEVICE_OWNER_DVR_INTERFACE
|
||||
)
|
||||
LOG.info('SNAT interface port list does not exist,'
|
||||
' so create one: %s', port_list)
|
||||
LOG.info('SNAT interface port list does not exist, creating one')
|
||||
v6_subnets = []
|
||||
network = None
|
||||
for intf in int_ports:
|
||||
|
|
Loading…
Reference in New Issue