commit 4af7e1cdd821bbda0319251f1aae633a04573413
Author: Dongcan Ye <email address hidden>
Date: Tue Dec 20 14:20:57 2016 +0800
Delete port created by kuryr
In current code, we get the port's subnet by checking the
subnet's subnetpool_id equal with the given PoolID, but in
existing environment, the subnet may lack subnetpool_id,
hence we will not get the port's subnet and leaves the
kuryr-libnetwork port undeleted.
This patch checks the port's device owner and determines
the given POOL's subnet_id and ip_address is equal to
port's fixed_ips attribute.
Change-Id: I736adbb2409b50a5e11d3aa7d31778944cfdeae1
Co-Authored-By: Liping Mao <email address hidden>
Closes-Bug: #1651015
Reviewed: https:/ /review. openstack. org/412772 /git.openstack. org/cgit/ openstack/ kuryr-libnetwor k/commit/ ?id=4af7e1cdd82 1bbda0319251f1a ae633a04573413
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4af7e1cdd821bbd a0319251f1aae63 3a04573413
Author: Dongcan Ye <email address hidden>
Date: Tue Dec 20 14:20:57 2016 +0800
Delete port created by kuryr
In current code, we get the port's subnet by checking the libnetwork port undeleted.
subnet's subnetpool_id equal with the given PoolID, but in
existing environment, the subnet may lack subnetpool_id,
hence we will not get the port's subnet and leaves the
kuryr-
This patch checks the port's device owner and determines
the given POOL's subnet_id and ip_address is equal to
port's fixed_ips attribute.
Change-Id: I736adbb2409b50 a5e11d3aa7d3177 8944cfdeae1
Co-Authored-By: Liping Mao <email address hidden>
Closes-Bug: #1651015