<% if @remove_route -%>
<% @remove_route_ifs.each do |interface| -%>
if [[ $(ip route | grep <%= interface %>) ]]; then ip route del $(ip route | grep <%= interface %> | awk '{print $1}'); fi
<% end -%>
<% end -%>

<% if @remove_route -%>
<% @remove_route_ifs.each do |interface| -%>
if [[ $(ip route | grep <%= interface %>) ]]; then ip route del $(ip route | grep <%= interface %> | awk '{print $1}'); fi
<% end -%>
<% end -%>

# The tap devices need proxy_arp in order to be routed on the VMs subnet
if [[ ${1:0:4} == "atap" ]]; then echo "1" > /proc/sys/net/ipv4/conf/$1/proxy_arp; fi

Add proxy_arp for tap devices on controllers
Add proxy_arp for tap devices on controllers
