def bind_floating_ip(floating_ip, device):
    _execute('ip', 'addr', 'add', str(floating_ip) + '/32',
             'dev', device,
             run_as_root=True, check_exit_code=[0, 2, 254])

    if CONF.send_arp_for_ha and CONF.send_arp_for_ha_count > 0:
        send_arp_for_ip(floating_ip, device, CONF.send_arp_for_ha_count)
Bind IP to public interface.
dataset/ETHPy150Open openstack/nova/nova/network/linux_net.py/bind_floating_ip