commit 760fe6a8fabc921e75367b5f02bab4fc326b8115
Author: Ed Bak <email address hidden>
Date: Mon Feb 9 23:13:18 2015 +0000
Return from check_ports_exist_on_l3agent if no subnet found
The call to get_subnet_ids_on_router can return an empty list.
If the subnet_ids list is empty, the subsequent call to get
the ports on a subnet returns all ports. If this occurs
when doing a remove_router_interface, the performance
of a remove_router_interface degrades significantly. This change
returns immediately from check_ports_exist_on_l3agents if no
subnet is found. A new unit test has been added to cover
the specific case of returning immediately without calling
get_ports when a remove_router_interface operation is performed.
Reviewed: https:/ /review. openstack. org/154289 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=760fe6a8fab c921e75367b5f02 bab4fc326b8115
Committed: https:/
Submitter: Jenkins
Branch: master
commit 760fe6a8fabc921 e75367b5f02bab4 fc326b8115
Author: Ed Bak <email address hidden>
Date: Mon Feb 9 23:13:18 2015 +0000
Return from check_ports_ exist_on_ l3agent if no subnet found
The call to get_subnet_ ids_on_ router can return an empty list. router_ interface, the performance router_ interface degrades significantly. This change exist_on_ l3agents if no router_ interface operation is performed.
If the subnet_ids list is empty, the subsequent call to get
the ports on a subnet returns all ports. If this occurs
when doing a remove_
of a remove_
returns immediately from check_ports_
subnet is found. A new unit test has been added to cover
the specific case of returning immediately without calling
get_ports when a remove_
Change-Id: I247d3bae152ab4 f8ab7e00bd24d87 8eb08dca1ba 6431e9da8942d09 68e7a012a91
Closes-Bug: #1420032
Depends-On: I15bbf16fd4378c