From e4d6080ea509723e45d52ad2ed69145432cf4897 Mon Sep 17 00:00:00 2001 From: Daniel Ankers Date: Fri, 19 Jan 2024 10:50:39 +0000 Subject: [PATCH] Add default gateway config --- juniper-macros.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/juniper-macros.j2 b/juniper-macros.j2 index 638fe85..abe49aa 100644 --- a/juniper-macros.j2 +++ b/juniper-macros.j2 @@ -196,6 +196,11 @@ snmp { routing-options { router-id {{ primary_ip4['address'][:-3] }}; autonomous-system {{ config_context['overlay_as'] }}; +{% if config_context['default-gw'] %} + static { + route 0.0.0.0/0 next-hop {{ config_context['default-gw'] }}; + } +{% endif %} forwarding-table { export PFE-ECMP; chained-composite-next-hop {