Skip to content

Commit 0475f0d

Browse files
committed
Merge branch 'master' of https://github.com/DataKnox/CodeSamples into master
2 parents 22c02dd + b1e73be commit 0475f0d

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

Python/Networking/Nornir/hosts/hosts.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ vQFX1:
187187
groups:
188188
- junos_group
189189
data:
190-
node_type: 'vswitch'
190+
node_type: 'vQFX-switch'
191191
lacp: True
192192
lacp_int_name:
193193
xe-0/0/1:
@@ -200,7 +200,7 @@ vQFX2:
200200
groups:
201201
- junos_group
202202
data:
203-
node_type: 'vswitch'
203+
node_type: 'vQFX-switch'
204204
lacp: True
205205
lacp_int_name:
206206
xe-0/0/1:
@@ -213,7 +213,7 @@ EX-DIST1:
213213
groups:
214214
- junos_group
215215
data:
216-
node_type: 'vswitch'
216+
node_type: 'EX-switch'
217217
lacp: True
218218
lacp_int_name:
219219
ge-0/0/0:

Python/Networking/Nornir/isis_interfaces.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
</interface>
2020
</interfaces>
2121
{% endfor %}
22-
</configuration>
22+
</configuration>

Python/Networking/Nornir/lacp_chassis.j2

+7
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@
1818
<name>0</name>
1919
<family>
2020
<ethernet-switching>
21+
{% if node_type == 'vQFX-switch' -%}
2122
<interface-mode>trunk</interface-mode>
2223
<vlan>
2324
<members>all</members>
2425
</vlan>
26+
{%- elif node_type == 'EX-switch' -%}
27+
<port-mode>trunk</port-mode>
28+
<vlan>
29+
<members>all</members>
30+
</vlan>
31+
{% endif %}
2532
</ethernet-switching>
2633
</family>
2734
</unit>

0 commit comments

Comments
 (0)