Skip to content

Commit

Permalink
Add gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
knewell committed Dec 5, 2019
1 parent 24b28dd commit 30310b2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions files/srtut_vmx_nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

common:
bgp_asn: 65000
gateway: 10.39.0.1

nodes:

Expand Down
1 change: 1 addition & 0 deletions templates/core-to-nodes.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

common:
bgp_asn: {{ common.bgp_asn }}
gateway: {{ common.gateway }}

nodes:
{% for node in nodes %}
Expand Down
2 changes: 1 addition & 1 deletion templates/junosphere.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions vars_files/core-model-srtut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

common:
bgp_asn: 65000
gateway: 10.39.0.1

nodes:
- name: srtut-vmx
Expand Down

0 comments on commit 30310b2

Please sign in to comment.