Skip to content

Commit cd588ba

Browse files
authored
[fanout-switch-deploy] Support multiple speeds and port breakout (#561)
* [fanout-switch-deploy] Support multiple speeds and port breakout - 100G port default has FEC turned on. Other ports FEC off. - Support port break out to 2x50G ports. - Support 40G port. * Remove fec configuration from 40G ports Signed-off-by: Ying Xie <[email protected]>
1 parent 0bc9e05 commit cd588ba

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

ansible/roles/fanout/templates/arista_7060_deploy.j2

+34
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,46 @@ vrf definition management
3232
{% set intf = 'Ethernet' + i|string + '/1' %}
3333
interface {{ intf }}
3434
{% if intf in device_port_vlans and device_port_vlans[intf]['mode'] != "Trunk" %}
35+
{% if device_port_vlans[intf]['speed'] == "100000" %}
3536
description {{ device_conn[intf]['peerdevice'] }}-{{ device_conn[intf]['peerport'] }}
3637
switchport access vlan {{ device_port_vlans[intf]['vlanids'] }}
3738
switchport mode dot1q-tunnel
3839
spanning-tree portfast
3940
speed forced 100gfull
41+
error-correction encoding reed-solomon
4042
no shutdown
43+
{% elif device_port_vlans[intf]['speed'] == "40000" %}
44+
description {{ device_conn[intf]['peerdevice'] }}-{{ device_conn[intf]['peerport'] }}
45+
switchport access vlan {{ device_port_vlans[intf]['vlanids'] }}
46+
switchport mode dot1q-tunnel
47+
spanning-tree portfast
48+
speed forced 40gfull
49+
no shutdown
50+
{% elif device_port_vlans[intf]['speed'] == "50000" %}
51+
description {{ device_conn[intf]['peerdevice'] }}-{{ device_conn[intf]['peerport'] }}
52+
switchport access vlan {{ device_port_vlans[intf]['vlanids'] }}
53+
switchport mode dot1q-tunnel
54+
spanning-tree portfast
55+
speed forced 50gfull
56+
no error-correction encoding
57+
no shutdown
58+
{% set intf = 'Ethernet' + i|string + '/3' %}
59+
interface {{ intf }}
60+
{% if intf in device_port_vlans and device_port_vlans[intf]['mode'] != "Trunk" %}
61+
description {{ device_conn[intf]['peerdevice'] }}-{{ device_conn[intf]['peerport'] }}
62+
switchport access vlan {{ device_port_vlans[intf]['vlanids'] }}
63+
switchport mode dot1q-tunnel
64+
spanning-tree portfast
65+
speed forced 50gfull
66+
no error-correction encoding
67+
no shutdown
68+
{% else %}
69+
shutdown
70+
{% endif %}
71+
{% else %}
72+
{# Not valid speed value #}
73+
shutdown
74+
{% endif %}
4175
{% elif intf in device_port_vlans and device_port_vlans[intf]['mode'] == 'Trunk' %}
4276
description {{ device_conn[intf]['peerdevice'] }}-{{ device_conn[intf]['peerport'] }}
4377
switchport mode trunk

0 commit comments

Comments
 (0)