def remove_floating_forward(floating_ip, fixed_ip, device, network):
 for (chain, rule) in floating_forward_rules(floating_ip, fixed_ip, device):
  iptables_manager.ipv4['nat'].remove_rule(chain, rule)
 iptables_manager.apply()
 if (device != network['bridge']):
  remove_ebtables_rules(*floating_ebtables_rules(fixed_ip, network))

def remove_floating_forward ( floating_ip , fixed_ip , device , network ) : for ( chain , rule ) in floating_forward_rules ( floating_ip , fixed_ip , device ) : iptables_manager . ipv4 [ 'nat' ] . remove_rule ( chain , rule ) iptables_manager . apply ( ) if ( device != network [ 'bridge' ] ) : remove_ebtables_rules ( * floating_ebtables_rules ( fixed_ip , network ) )
remove forwarding for floating ip .