We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deab95c commit 0b13c45Copy full SHA for 0b13c45
files/build_templates/buffers_config.j2
@@ -29,12 +29,16 @@ def
29
{# Port configuration to cable length look-up table #}
30
{# Each record describes mapping of DUT (DUT port) role and neighbor role to cable length #}
31
{# Roles described in the minigraph #}
32
-{%- set ports2cable = {
33
- 'torrouter_server' : '5m',
34
- 'leafrouter_torrouter' : '40m',
35
- 'spinerouter_leafrouter' : '300m'
36
- }
37
--%}
+{%- if defs.ports2cable is defined %}
+ {%- set ports2cable = defs.ports2cable %}
+{%- else %}
+ {%- set ports2cable = {
+ 'torrouter_server' : '5m',
+ 'leafrouter_torrouter' : '40m',
38
+ 'spinerouter_leafrouter' : '300m'
39
+ }
40
+ -%}
41
+{%- endif %}
42
43
{%- macro cable_length(port_name) %}
44
{%- set cable_len = [] %}
0 commit comments