Skip to content

Commit 7f46098

Browse files
committed
fix clab
1 parent c366bd2 commit 7f46098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/clab_topology.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ topology:
2222

2323
nodes:
2424
{% for device in topology.node.devices.edges %}
25+
{% if device.node.platform.node.containerlab_os.value == "arista_ceos" %}
2526
{{ device.node.name.value }}:
2627
kind: {{ device.node.platform.node.containerlab_os.value }}
2728
type: {{ device.node.device_type.node.name.value }}
@@ -32,10 +33,9 @@ topology:
3233
{% set mgmt_ip = device.node.primary_address.node.address.value.split('/') %}
3334
mgmt-ipv4: {{ mgmt_ip[0] }}
3435
{% endif %}
35-
{% endfor %}
36-
{% if networkos == "arista_ceos" %}
3736
startup-config: generated-configs/devices/{{ device.node.name.value }}.cfg
3837
{% endif %}
38+
{% endfor %}
3939

4040
links:
4141
{% set processed_endpoints = [] %}

0 commit comments

Comments
 (0)