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)

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 .