sonic-buildimage/files/image_config/interfaces/lag_interfaces.j2
Oleksandr Ivantsiv 34ea91349c one image implementation (#215)
* Single image

* Fix review comments

* Update syncd service. Add HW mgmt to Mellanox single image.

* Add single image template for Broadcom platform.

SKU should be provided during configure:
make configure PLATFORM=broadcom SKU=Force10-S6000

* Add single image template for Cavium platform.

SKU should be provided during configure:
make configure PLATFORM=cavium SKU=AS7512

* Add description to sonic_debian_extension.j2 file.
2017-01-29 11:33:33 -08:00

21 lines
592 B
Django/Jinja

#
{% block banner %}
# =========== Managed by config engine DO NOT EDIT! ========================
# generated by templates/lag_interfaces.j2 using sonic-cfggen
# file: lag_interfaces
{% endblock %}
#
{% block lag_interface %}
# The switch LAG interfaces
{% for interface in minigraph_interfaces %}
{% if 'PortChannel' in interface['alias'] %}
auto {{ interface['name'] }}
iface {{ interface['name'] }} {{ 'inet' if interface['addr'] | ipv4 else 'inet6' }} static
address {{ interface['addr'] }}
netmask {{ interface['mask'] }}
{% endif %}
{% endfor %}
{% endblock lag_interface %}
#