From ecb638b107e51d482a5f8d09d2a8765bf1c00171 Mon Sep 17 00:00:00 2001 From: Daniel Ankers Date: Fri, 19 Jan 2024 10:54:09 +0000 Subject: [PATCH] Change variable name for default gateway - 'gateway' existed already --- juniper-macros.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/juniper-macros.j2 b/juniper-macros.j2 index a649ad2..abc426f 100644 --- a/juniper-macros.j2 +++ b/juniper-macros.j2 @@ -196,9 +196,9 @@ snmp { routing-options { router-id {{ primary_ip4['address'][:-3] }}; autonomous-system {{ config_context['overlay_as'] }}; -{% if config_context['default-gw'] %} +{% if config_context['gateway'] %} static { - route 0.0.0.0/0 next-hop {{ config_context['default-gw'] }}; + route 0.0.0.0/0 next-hop {{ config_context['gateway'] }}; } {% endif %} forwarding-table {