neighbor <%= @neighbor_ipv4 %> {
  description "Upstream IPv4 provider";
  router-id <%= @router_id %>;
  local-address <%= @local_address_ipv4 %>;
  local-as <%= @local_as %>;
  peer-as <%= @peer_as %>;
  hold-time <%= @hold_time %>;
  family {
    inet4 unicast;
  }

  process route_0 {
    run /etc/exabgp/route_0_watchdog.sh;
  }

  static {
    route <%= @route_ipv4 %>/24 {
      next-hop <%= @local_address_ipv4 %>;
      community [<%= @community %>];
      watchdog route_0;
    }
  }
}

<% if @neighbor_ipv6 %>
neighbor <%= @neighbor_ipv6 %> {
  description "Upstream IPv6 provider";
  router-id <%= @router_id %>;
  local-address <%= @local_address_ipv6 %>;
  local-as <%= @local_as %>;
  peer-as <%= @peer_as %>;
  hold-time <%= @hold_time %>;
  family {
    inet6 unicast;
  }

  static {
    route <%= @route_ipv6 %>/48 {
      next-hop <%= @local_address_ipv6 %>;
      community [<%= @community %>];
    }
  }
}
<% end %>

neighbor <%= @neighbor_ipv4 %> {
  description "Upstream IPv4 provider";
  router-id <%= @router_id %>;
  local-address <%= @local_address_ipv4 %>;
  local-as <%= @local_as %>;
  peer-as <%= @peer_as %>;
  hold-time <%= @hold_time %>;
  family {
    ipv4 unicast;
  }

  process route_0 {
    run /etc/exabgp/route_0_watchdog.sh;
  }

  static {
    route <%= @route_ipv4 %>/24 {
      next-hop <%= @local_address_ipv4 %>;
      community [<%= @community %>];
      watchdog route_0;
    }
  }
}

<% if @neighbor_ipv6 %>
neighbor <%= @neighbor_ipv6 %> {
  description "Upstream IPv6 provider";
  router-id <%= @router_id %>;
  local-address <%= @local_address_ipv6 %>;
  local-as <%= @local_as %>;
  peer-as <%= @peer_as %>;
  hold-time <%= @hold_time %>;
  family {
    inet6 unicast;
  }

  static {
    route <%= @route_ipv6 %>/48 {
      next-hop <%= @local_address_ipv6 %>;
      community [<%= @community %>];
    }
  }
}
<% end %>

Rename deprecated inet4 to ipv4
Rename deprecated inet4 to ipv4
