'Test to validate the floatingip migration or latebinding.
This test validates the condition where floatingip private
port changes while migration or when the private port host
binding is done later after floatingip association.'

def test_dvr_router_fip_late_binding(self):

    self.agent.conf.agent_mode = 'dvr'
    router_info = self.generate_dvr_router_info()
    fip_agent_gw_port = router_info[n_const.FLOATINGIP_AGENT_INTF_KEY]
    router_info[n_const.FLOATINGIP_AGENT_INTF_KEY] = []
    self.mock_plugin_api.get_agent_gateway_port.return_value = fip_agent_gw_port[0]
    router1 = self.manage_router(self.agent, router_info)
    fip_ns = router1.fip_ns.get_name()
    self.assertTrue(self._namespace_exists(router1.ns_name))
    self.assertTrue(self._namespace_exists(fip_ns))
    self._assert_snat_namespace_does_not_exist(router1)
