Skip to content

Add mtu setting to os10_lag #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/119-add-lag-mtu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- os10_lag - Add support for mtu to os10_lag (https://github.com/ansible-collections/dellemc.os10/pull/119).
1 change: 1 addition & 0 deletions roles/os10_lag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Role variables
| ``max_bundle_size`` | integer | Configures the maximum bundle size for the port channel | os10 |
| ``lacp_system_priority`` | integer | Configures the LACP system-priority value | os10 |
| ``lacp_fallback_enable`` | boolean | Configures LACP fallback | os10 |
| ``mtu`` | integer | Configures the MTU size (1280 to 65535) | os10 |
| ``vlt_port_channel`` | integer | Configure the lag as VLT | os10 |
| ``channel_members`` | list | Specifies the list of port members to be associated to the port-channel (see ``channel_members.*``) | os10 |
| ``channel_members.port`` | string | Specifies valid interface names to be configured as port-channel members | os10 |
Expand Down
7 changes: 7 additions & 0 deletions roles/os10_lag/templates/os10_lag.j2
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ interface port-channel{{ channel_id[1] }}
no vlt-port-channel
{% endif %}
{% endif %}
{% if lag_vars.mtu is defined %}
{% if lag_vars.mtu %}
mtu {{ lag_vars.mtu }}
{% else %}
no mtu
{% endif %}
{% endif %}
{% if lag_vars.channel_members is defined %}
{% for ports in lag_vars.channel_members %}
{% if ports.port is defined and ports.port %}
Expand Down