Skip to content

Commit

Permalink
Add hook to allow customizing link cable lengths
Browse files Browse the repository at this point in the history
Signed-off-by: Wenda Ni <wenni@microsoft.com>
wendani authored and lguohan committed Mar 9, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9e8518c commit d904b3e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions files/build_templates/buffers_config.j2
Original file line number Diff line number Diff line change
@@ -29,12 +29,16 @@ def
{# Port configuration to cable length look-up table #}
{# Each record describes mapping of DUT (DUT port) role and neighbor role to cable length #}
{# Roles described in the minigraph #}
{%- set ports2cable = {
'torrouter_server' : '5m',
'leafrouter_torrouter' : '40m',
'spinerouter_leafrouter' : '300m'
}
-%}
{%- if defs.ports2cable is defined %}
{%- set ports2cable = defs.ports2cable %}
{%- else %}
{%- set ports2cable = {
'torrouter_server' : '5m',
'leafrouter_torrouter' : '40m',
'spinerouter_leafrouter' : '300m'
}
-%}
{%- endif %}

{%- macro cable_length(port_name) %}
{%- set cable_len = [] %}

0 comments on commit d904b3e

Please sign in to comment.