FYI, this is changed now to only ignore the specific case that the ip is bound already (exit code 254)
36 def bind_floating_ip(floating_ip, device): 437 """Bind ip to public interface.""" 438 _execute('ip', 'addr', 'add', str(floating_ip) + '/32', 439 'dev', device, 440 run_as_root=True, check_exit_code=[0, 254])
That said, the fixes dean adden in the above branch are still useful for returning a useful error to the user.
FYI, this is changed now to only ignore the specific case that the ip is bound already (exit code 254)
36 def bind_floating_ ip(floating_ ip, device):
437 """Bind ip to public interface."""
438 _execute('ip', 'addr', 'add', str(floating_ip) + '/32',
439 'dev', device,
440 run_as_root=True, check_exit_code=[0, 254])
That said, the fixes dean adden in the above branch are still useful for returning a useful error to the user.