diff --git a/files/srtut_vmx_nodes.yml b/files/srtut_vmx_nodes.yml index 08bd217..7f14a59 100644 --- a/files/srtut_vmx_nodes.yml +++ b/files/srtut_vmx_nodes.yml @@ -7,6 +7,7 @@ common: bgp_asn: 65000 + gateway: 10.39.0.1 nodes: diff --git a/templates/core-to-nodes.j2 b/templates/core-to-nodes.j2 index 5a3ec72..f1675e5 100644 --- a/templates/core-to-nodes.j2 +++ b/templates/core-to-nodes.j2 @@ -11,6 +11,7 @@ common: bgp_asn: {{ common.bgp_asn }} + gateway: {{ common.gateway }} nodes: {% for node in nodes %} diff --git a/templates/junosphere.j2 b/templates/junosphere.j2 index 6896245..7cd31d7 100644 --- a/templates/junosphere.j2 +++ b/templates/junosphere.j2 @@ -201,7 +201,7 @@ routing-options { } static { route 0.0.0.0/0 { - next-hop 10.39.0.1; + next-hop {{ common.gateway }}; no-readvertise; preference 255; } diff --git a/vars_files/core-model-srtut.yml b/vars_files/core-model-srtut.yml index 7cc931d..e14ca76 100644 --- a/vars_files/core-model-srtut.yml +++ b/vars_files/core-model-srtut.yml @@ -2,6 +2,7 @@ common: bgp_asn: 65000 + gateway: 10.39.0.1 nodes: - name: srtut-vmx