'Add floating IP to FIP namespace.'

def floating_ip_added_dist(self, fip, fip_cidr):

    if fip.get(n_const.DVR_SNAT_BOUND):
        floating_ip_status = self.add_centralized_floatingip(fip, fip_cidr)
        if (floating_ip_status == lib_constants.FLOATINGIP_STATUS_ACTIVE):
            self.centralized_floatingips_set.add(fip_cidr)
        return floating_ip_status
    floating_ip = fip['floating_ip_address']
    fixed_ip = fip['fixed_ip_address']
    self._add_floating_ip_rule(floating_ip, fixed_ip)
    fip_2_rtr_name = self.fip_ns.get_int_device_name(self.router_id)
    fip_ns_name = self.fip_ns.get_name()
    if (self.rtr_fip_subnet is None):
        self.rtr_fip_subnet = self.fip_ns.local_subnets.allocate(self.router_id)
    (rtr_2_fip, __) = self.rtr_fip_subnet.get_pair()
    device = ip_lib.IPDevice(fip_2_rtr_name, namespace=fip_ns_name)
    device.route.add_route(fip_cidr, str(rtr_2_fip.ip))
    interface_name = self.fip_ns.get_ext_device_name(self.fip_ns.agent_gateway_port['id'])
    ip_lib.send_ip_addr_adv_notif(fip_ns_name, interface_name, floating_ip)
    return lib_constants.FLOATINGIP_STATUS_ACTIVE
