Skip to content

Commit 6fca7ba

Browse files
committed
tests
1 parent 29889d8 commit 6fca7ba

File tree

5 files changed

+22
-19
lines changed

5 files changed

+22
-19
lines changed

templates/clab_topology.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616

1717
---
18+
#TEST RYAN
1819
{# ============================================================================
1920
Basic Topology Configuration
2021
============================================================================ #}

templates/configs/leafs/arista_eos.j2

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ router bgp {{ bgp.local_as }}
101101
maximum-paths 4 ecmp 64
102102
{# Configure BGP neighbors from enhanced transform data #}
103103
{%- for neighbor in bgp.neighbors %}
104-
{%- set neihbor_ip = neighbor.remote_ip | ipaddress_interface(attr='ip') %}
104+
{%- set neighbor_ip = neighbor.remote_ip | ipaddress_interface(attr='ip') %}
105105
! {{ neighbor.description or 'BGP Neighbor' }}
106-
neighbor {{ neihbor_ip }} remote-as {{ neighbor.remote_as }}
107-
neighbor {{ neihbor_ip }} update-source Loopback0
108-
neighbor {{ neihbor_ip }} description {{ neighbor.description or 'BGP Neighbor' }}
109-
neighbor {{ neihbor_ip }} send-community extended
110-
neighbor {{ neihbor_ip }} maximum-routes 0
106+
neighbor {{ neighbor_ip }} remote-as {{ neighbor.remote_as }}
107+
neighbor {{ neighbor_ip }} update-source Loopback0
108+
neighbor {{ neighbor_ip }} description {{ neighbor.description or 'BGP Neighbor' }}
109+
neighbor {{ neighbor_ip }} send-community extended
110+
neighbor {{ neighbor_ip }} maximum-routes 0
111111
{%- endfor %}
112112
address-family ipv4
113113
redistribute connected route-map RM-CONN-2-BGP

templates/configs/loadbalancers/f5_networks_linux.j2

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ sys snmp {
3737
{%- if vips %}
3838
{%- for vip in vips %}
3939
{%- if vip.backend_servers %}
40+
{%- set clean_hostname = vip.hostname | replace('.', '_') | replace('-', '_') %}
4041

4142
# Pool configuration for {{ vip.hostname }}
42-
ltm pool {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_pool {
43+
ltm pool {{ clean_hostname }}_pool {
4344
{%- if vip.balance == 'roundrobin' %}
4445
load-balancing-mode round-robin
4546
{%- elif vip.balance == 'leastconn' %}
@@ -77,7 +78,7 @@ ltm pool {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_pool {
7778
}
7879

7980
# Virtual Server configuration for {{ vip.hostname }}
80-
ltm virtual {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_vs {
81+
ltm virtual {{ clean_hostname }}_vs {
8182
destination {{ vip.ip_address | ipaddress_interface(attr='ip') }}:80
8283
{%- if vip.ssl_certificate %}
8384
profiles {
@@ -97,7 +98,7 @@ ltm virtual {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_vs {
9798
}
9899
{%- endif %}
99100

100-
pool {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_pool
101+
pool {{ clean_hostname }}_pool
101102
source-address-translation {
102103
type automap
103104
}
@@ -111,22 +112,22 @@ ltm virtual {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_vs {
111112

112113
{%- if vip.ssl_certificate %}
113114
# SSL Certificate Profile for {{ vip.hostname }}
114-
ltm profile client-ssl {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_clientssl {
115+
ltm profile client-ssl {{ clean_hostname }}_clientssl {
115116
cert {{ vip.ssl_certificate }}.crt
116117
key {{ vip.ssl_certificate }}.key
117118
chain {{ vip.ssl_certificate }}_chain.crt
118119
}
119120

120121
# HTTPS Virtual Server for {{ vip.hostname }}
121-
ltm virtual {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_https_vs {
122+
ltm virtual {{ clean_hostname }}_https_vs {
122123
destination {{ vip.ip_address | ipaddress_interface(attr='ip') }}:443
123124
profiles {
124125
http { }
125-
{{ vip.hostname | replace('.', '_') | replace('-', '_') }}_clientssl {
126+
{{ clean_hostname }}_clientssl {
126127
context clientside
127128
}
128129
}
129-
pool {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_pool
130+
pool {{ clean_hostname }}_pool
130131
source-address-translation {
131132
type automap
132133
}

templates/configs/loadbalancers/haproxy_technologies_linux.j2

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ listen haproxy-stats
5959
{%- if vips %}
6060
{%- for vip in vips %}
6161
{%- if vip.backend_servers %}
62+
{%- set clean_hostname = vip.hostname | replace('.', '_') | replace('-', '_') %}
6263

6364
# Frontend for {{ vip.hostname }}
64-
frontend {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_frontend
65+
frontend {{ clean_hostname }}_frontend
6566
{%- if vip.mode == 'tcp' %}
6667
mode tcp
6768
{%- else %}
@@ -76,10 +77,10 @@ frontend {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_frontend
7677
{%- endif %}
7778
{%- endif %}
7879

79-
default_backend {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_backend
80+
default_backend {{ clean_hostname }}_backend
8081

8182
# Backend for {{ vip.hostname }}
82-
backend {{ vip.hostname | replace('.', '_') | replace('-', '_') }}_backend
83+
backend {{ clean_hostname }}_backend
8384
{%- if vip.mode == 'tcp' %}
8485
mode tcp
8586
{%- else %}

templates/configs/spines/arista_eos.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ router bgp {{ bgp.local_as }}
6767
peer-group EVPN-OVERLAY-PEERS maximum-routes 0
6868
{# Configure BGP neighbors from enhanced transform data #}
6969
{%- for neighbor in bgp.neighbors %}
70-
{%- set neihbor_ip = neighbor.remote_ip | ipaddress_interface(attr='ip') %}
70+
{%- set neighbor_ip = neighbor.remote_ip | ipaddress_interface(attr='ip') %}
7171
! {{ neighbor.description or 'BGP Neighbor' }} (Route Reflector Client)
72-
neighbor {{ neihbor_ip }} peer-group EVPN-OVERLAY-PEERS
73-
neighbor {{ neihbor_ip }} description {{ neighbor.description or 'BGP Neighbor' }}
72+
neighbor {{ neighbor_ip }} peer-group EVPN-OVERLAY-PEERS
73+
neighbor {{ neighbor_ip }} description {{ neighbor.description or 'BGP Neighbor' }}
7474
{%- endfor %}
7575
address-family ipv4
7676
redistribute connected route-map RM-CONN-2-BGP

0 commit comments

Comments
 (0)