_get_floatingips_bound_to_host function was introduced
recently in dvr_local_router to retrieve the external
interface name for centralizing the floatingip.
This function was throwing a 'KeyError' on fip['host'] and
not required for centralized floatingips anymore.
The get_external_device_interface_name in dvr_local_router
will try to get the 'fg' interface that is required for
the bound floating-ips to clear up some of the rules.
In the case of the centralized unbound floating-ips, the
'qg' external interface is retreived from
get_snat_external_device_interface_name that is defined
in 'dvr_edge_router' and based on the namespace.
So _get_floatingips_bound_to_host can be removed from
get_external_device_inteface_name.
Reviewed: https:/ /review. openstack. org/497009 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=47fbc6157ac 4125fa068e64b57 3433a02c0ce0fc
Committed: https:/
Submitter: Jenkins
Branch: master
commit 47fbc6157ac4125 fa068e64b573433 a02c0ce0fc
Author: Swaminathan Vasudevan <email address hidden>
Date: Wed Aug 23 21:11:58 2017 -0700
DVR: _get_floatingip s_bound_ to_host throws KeyError
_get_ floatingips_ bound_to_ host function was introduced
recently in dvr_local_router to retrieve the external
interface name for centralizing the floatingip.
This function was throwing a 'KeyError' on fip['host'] and
not required for centralized floatingips anymore.
The get_external_ device_ interface_ name in dvr_local_router snat_external_ device_ interface_ name that is defined
will try to get the 'fg' interface that is required for
the bound floating-ips to clear up some of the rules.
In the case of the centralized unbound floating-ips, the
'qg' external interface is retreived from
get_
in 'dvr_edge_router' and based on the namespace.
So _get_floatingip s_bound_ to_host can be removed from external_ device_ inteface_ name.
get_
Closes-Bug: 1712412
Change-Id: I94c0a071df32f5 72745a2c2994295 6c3da9f309b