'Function to handle the centralized Floatingip addition.'

def add_centralized_floatingip(self, fip, fip_cidr):

    if (not self.get_ex_gw_port()):
        return
    if (not self._is_this_snat_host()):
        return
    interface_name = self.get_snat_external_device_interface_name(self.get_ex_gw_port())
    device = ip_lib.IPDevice(interface_name, namespace=self.snat_namespace.name)
    try:
        device.addr.add(fip_cidr)
    except RuntimeError:
        LOG.warning('Unable    to    configure    IP    address    for    centralized    floating    IP:    %s', fip['id'])
        return lib_constants.FLOATINGIP_STATUS_ERROR
    self.process_floating_ip_nat_rules_for_centralized_floatingip()
    ip_lib.send_ip_addr_adv_notif(self.snat_namespace.name, interface_name, fip['floating_ip_address'], self.agent_conf)
    return lib_constants.FLOATINGIP_STATUS_ACTIVE
