Skip to content

Commit

Permalink
set indentation insidef template
Browse files Browse the repository at this point in the history
  • Loading branch information
ngschmidt committed Dec 30, 2020
1 parent 22522d6 commit e98d789
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions roles/templates/vyos-spine.j2
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ interfaces {
policy {
prefix-list {{ policy.prefixout.name }} {
description "{{ policy.prefixout.description }}"
{{ policy.prefixout.contents }}
{{ policy.prefixout.contents | indent( width=4, indentfirst=True) }}
}
prefix-list {{ policy.prefixin.name }} {
description "{{ policy.prefixin.description }}"
{{ policy.prefixin.contents }}
{{ policy.prefixin.contents | indent( width=4, indentfirst=True) }}
}
route-map {{ policy.prefixout.name }}-route-map {
rule 10 {
Expand Down
28 changes: 14 additions & 14 deletions roles/vars/vyos-l0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ policy:
description: "Advertise Connected routes"
contents: |-
rule 10 {
\t\t\taction permit
\t\t\tprefix 10.6.196.0/24
\t\t}
\t\trule 20 {
\t\t\taction permit
\t\t\tprefix 10.6.192.0/31
\t\t}
\t\trule 30 {
\t\t\taction permit
\t\t\tprefix 10.6.194.0/31
\t\t}
action permit
prefix 10.6.196.0/24
}
rule 20 {
action permit
prefix 10.6.192.0/31
}
rule 30 {
action permit
prefix 10.6.194.0/31
}
prefixin:
name: 'INBOUND-SPINE'
description: "Accept inbound spine routes"
contents: |-
rule 10 {
\t\t\taction permit
\t\t\tprefix 10.6.192.0/19
\t\t}
action permit
prefix 10.6.192.0/19
}

0 comments on commit e98d789

Please sign in to comment.