feat(iosxe): add mtu to port-channel and ip_mtu to loopback and vlan interfaces#496
Open
ChristopherJHart wants to merge 4 commits intoCiscoDevNet:mainfrom
Open
feat(iosxe): add mtu to port-channel and ip_mtu to loopback and vlan interfaces#496ChristopherJHart wants to merge 4 commits intoCiscoDevNet:mainfrom
ChristopherJHart wants to merge 4 commits intoCiscoDevNet:mainfrom
Conversation
…unnel interfaces Add the interface-level mtu attribute to iosxe_interface_loopback, iosxe_interface_vlan, iosxe_interface_port_channel, and iosxe_interface_tunnel resources and data sources, matching the existing support in iosxe_interface_ethernet. For netascode/nac-iosxe#441 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> AI-Generated: yes AI-Tool: claude-code AI-Model: opus-4.6 AI-Percent: 100 AI-Reason: add mtu to interface definitions and regenerate
…e-mtu # Conflicts: # CHANGELOG.md # docs/guides/changelog.md # templates/guides/changelog.md.tmpl
…nel only Live device testing showed that interface-level mtu (L2) is only supported on Port-Channel (physical switches). Loopback, VLAN, and Tunnel interfaces require ip mtu (L3) instead. Tunnel already had ip/mtu, so this change adds ip/mtu to loopback and vlan, keeps mtu on port-channel, and removes the non-functional mtu from tunnel. Tested on Cat8kv (Loopback ip mtu), Cat9kv (VLAN ip mtu), and C9300 physical switch (Port-Channel mtu). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> AI-Generated: yes AI-Tool: claude-code AI-Model: opus-4.6 AI-Percent: 41 AI-Reason: pivot to ip_mtu for loopback/vlan, keep mtu for port-channel only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mtuattribute toiosxe_interface_port_channelresource and data sourceip_mtuattribute toiosxe_interface_loopbackandiosxe_interface_vlanresources and data sourcesFixes #441
Notes
mtu(L2 frame size) is only supported on Port-Channel interfaces (physical switches like C9300). Loopback, VLAN, and Tunnel interfaces requireip mtu(L3 packet size) instead.ip_mtusupport, so no change was needed there.interface-common-groupinginCisco-IOS-XE-interfaces.yangdefines bothmtu(uint16, 64-18000) andip/mtu(uint16, 68-18000)ip mtu 1400), Cat9kv (VLANip mtu 1400), and C9300 physical switch (Port-Channelmtu 1500)AI Generation Metadata