Skip to content

Commit

Permalink
Support for additional fanout modes
Browse files Browse the repository at this point in the history
  • Loading branch information
abirami-n authored and skg-net committed Jun 13, 2018
1 parent 878b811 commit 98cec2d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/dellos10_interface.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,21 @@ dellos_interface:
#####################################################}
{% if dellos_interface is defined and dellos_interface %}
{% for key in dellos_interface.keys() %}
{% set intf_vars = dellos_interface[key] %}
{% set intf_vars = dellos_interface[key] %}
{% set port = key.split(" ") %}
{% set interface_key = "" %}

{% if intf_vars.fanout is defined %}
{% if intf_vars.fanout %}
interface breakout {{ port[1] }} map {{ intf_vars.fanout }}
{% else %}
no interface breakout {{ port[1] }}
{% endif %}
{% endif %}
{% endfor %}
{% for key in dellos_interface.keys() %}
{% set intf_vars = dellos_interface[key] %}
{% set port = key.split(" ") %}
{% set interface_key = "" %}
{% if (intf_vars.fanout is defined and not intf_vars.fanout) or (intf_vars.fanout is not defined) %}
{% if key.startswith('range')%}
{% set interface_key = port[0] + " " + port[1] + port[2] %}
Expand Down

0 comments on commit 98cec2d

Please # to comment.