'Test to validate the floatingip namespace creation without fip.
This test validates the condition where floatingip namespace gets
created on the agent when the gateway is added and without floatingip
configured for the router.'

def test_dvr_router_fip_namespace_create_without_floatingip(self):

    self.agent.conf.agent_mode = 'dvr'
    router_info = self.generate_dvr_router_info(enable_floating_ip=False)
    fip_agent_gw_port = self._get_fip_agent_gw_port_for_router(router_info['gw_port'])
    self.mock_plugin_api.get_agent_gateway_port.return_value = fip_agent_gw_port
    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.assertTrue(router1.rtr_fip_connect)
    self._assert_snat_namespace_does_not_exist(router1)
