Skip to content
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

Feat(eos_cli_config_gen,eos_designs): Add support for 'l2 mru' #3164

Merged
merged 9 commits into from Nov 13, 2023
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ interface Ethernet1
description P2P_LINK_TO_DC1-SPINE1_Ethernet1
mtu 1500
speed forced 100gfull
l2 mtu 8000
l2 mru 8000
bgp session tracker ST1
no switchport
ip address 172.31.255.1/31
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ interface Port-Channel5
switchport trunk allowed vlan 110,201
switchport mode trunk
l2 mtu 8000
l2 mru 8000
mlag 5
storm-control broadcast level 1
storm-control multicast level 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ interface Ethernet1
description P2P_LINK_TO_DC1-SPINE1_Ethernet1
mtu 1500
speed forced 100gfull
l2 mtu 8000
l2 mru 8000
bgp session tracker ST1
no switchport
ip address 172.31.255.1/31
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ interface Port-Channel5
switchport trunk allowed vlan 110,201
switchport mode trunk
l2 mtu 8000
l2 mru 8000
mlag 5
storm-control broadcast level 1
storm-control multicast level 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ ethernet_interfaces:
description: P2P_LINK_TO_DC1-SPINE1_Ethernet1
speed: forced 100gfull
mtu: 1500
l2_mtu: 8000
l2_mru: 8000
type: routed
ip_address: 172.31.255.1/31
link_tracking_groups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ port_channel_interfaces:
bgp:
session_tracker: ST2
l2_mtu: 8000
l2_mru: 8000
eos_cli: |
comment
Comment created from eos_cli under port_channel_interfaces.Port-Channel5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ interface Ethernet6
description server02_SINGLE_NODE_TRUNK_Eth1
no shutdown
l2 mtu 8000
l2 mru 9000
switchport trunk allowed vlan 1-4094
switchport mode trunk
switchport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ interface Port-Channel14
switchport trunk allowed vlan 1-4094
switchport mode trunk
l2 mtu 8000
l2 mru 9000
mlag 14
spanning-tree portfast
spanning-tree bpduguard enable
Expand Down Expand Up @@ -358,6 +359,7 @@ interface Ethernet11
description server04_inherit_all_from_profile_Eth1
no shutdown
l2 mtu 8000
l2 mru 9000
switchport trunk allowed vlan 1-4094
switchport mode trunk
switchport
Expand Down Expand Up @@ -387,6 +389,7 @@ interface Ethernet13
description server06_override_profile_Eth1
no shutdown
l2 mtu 8000
l2 mru 9000
switchport access vlan 210
switchport mode access
switchport
Expand All @@ -412,6 +415,7 @@ interface Ethernet16
description server09_override_profile_no_port_channel_Eth1
no shutdown
l2 mtu 8000
l2 mru 9000
switchport access vlan 210
switchport mode access
switchport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ interface Port-Channel14
switchport trunk allowed vlan 1-4094
switchport mode trunk
l2 mtu 8000
l2 mru 9000
mlag 14
spanning-tree portfast
spanning-tree bpduguard enable
Expand Down Expand Up @@ -342,6 +343,7 @@ interface Ethernet11
description server04_inherit_all_from_profile_Eth2
no shutdown
l2 mtu 8000
l2 mru 9000
switchport trunk allowed vlan 1-4094
switchport mode trunk
switchport
Expand Down Expand Up @@ -371,6 +373,7 @@ interface Ethernet13
description server06_override_profile_Eth2
no shutdown
l2 mtu 8000
l2 mru 9000
switchport access vlan 210
switchport mode access
switchport
Expand All @@ -396,6 +399,7 @@ interface Ethernet16
description server09_override_profile_no_port_channel_Eth2
no shutdown
l2 mtu 8000
l2 mru 9000
switchport access vlan 210
switchport mode access
switchport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ ethernet_interfaces:
shutdown: false
type: switched
l2_mtu: 8000
l2_mru: 9000
mode: trunk
vlans: 1-4094
spanning_tree_portfast: edge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ port_channel_interfaces:
shutdown: false
mode: trunk
l2_mtu: 8000
l2_mru: 9000
vlans: 1-4094
spanning_tree_portfast: edge
spanning_tree_bpdufilter: enabled
Expand Down Expand Up @@ -1121,6 +1122,7 @@ ethernet_interfaces:
shutdown: false
type: switched
l2_mtu: 8000
l2_mru: 9000
mode: trunk
vlans: 1-4094
spanning_tree_portfast: edge
Expand Down Expand Up @@ -1173,6 +1175,7 @@ ethernet_interfaces:
shutdown: false
type: switched
l2_mtu: 8000
l2_mru: 9000
mode: access
vlans: '210'
spanning_tree_portfast: network
Expand Down Expand Up @@ -1221,6 +1224,7 @@ ethernet_interfaces:
shutdown: false
type: switched
l2_mtu: 8000
l2_mru: 9000
mode: access
vlans: '210'
spanning_tree_portfast: network
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ port_channel_interfaces:
shutdown: false
mode: trunk
l2_mtu: 8000
l2_mru: 9000
vlans: 1-4094
spanning_tree_portfast: edge
spanning_tree_bpdufilter: enabled
Expand Down Expand Up @@ -1100,6 +1101,7 @@ ethernet_interfaces:
shutdown: false
type: switched
l2_mtu: 8000
l2_mru: 9000
mode: trunk
vlans: 1-4094
spanning_tree_portfast: edge
Expand Down Expand Up @@ -1152,6 +1154,7 @@ ethernet_interfaces:
shutdown: false
type: switched
l2_mtu: 8000
l2_mru: 9000
mode: access
vlans: '210'
spanning_tree_portfast: network
Expand Down Expand Up @@ -1200,6 +1203,7 @@ ethernet_interfaces:
shutdown: false
type: switched
l2_mtu: 8000
l2_mru: 9000
mode: access
vlans: '210'
spanning_tree_portfast: network
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ port_profiles:
spanning_tree_bpduguard: disabled
spanning_tree_portfast: edge
l2_mtu: 8000
l2_mru: 9000
storm_control:
all:
level: 10.0
Expand All @@ -45,6 +46,7 @@ port_profiles:
spanning_tree_bpduguard: enabled
spanning_tree_portfast: edge
l2_mtu: 8000
l2_mru: 9000
storm_control:
all:
level: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"mka": "MKA",
"mlag": "MLAG",
"mpls": "MPLS",
"mru": "MRU",
"mtu": "MTU",
"nd": "ND",
"ntp": "NTP",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;shutdown</samp>](## "ethernet_interfaces.[].shutdown") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;load_interval</samp>](## "ethernet_interfaces.[].load_interval") | Integer | | | Min: 0<br>Max: 600 | Interval in seconds for updating interface counters" |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;speed</samp>](## "ethernet_interfaces.[].speed") | String | | | | Speed should be set in the format `<interface_speed>` or `forced <interface_speed>` or `auto <interface_speed>`. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;mtu</samp>](## "ethernet_interfaces.[].mtu") | Integer | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;l2_mtu</samp>](## "ethernet_interfaces.[].l2_mtu") | Integer | | | | "l2_mtu" should only be defined for platforms supporting the "l2 mtu" CLI<br> |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;mtu</samp>](## "ethernet_interfaces.[].mtu") | Integer | | | Min: 68<br>Max: 65535 | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;l2_mtu</samp>](## "ethernet_interfaces.[].l2_mtu") | Integer | | | Min: 68<br>Max: 65535 | "l2_mtu" should only be defined for platforms supporting the "l2 mtu" CLI<br> |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;l2_mru</samp>](## "ethernet_interfaces.[].l2_mru") | Integer | | | Min: 68<br>Max: 65535 | "l2_mru" should only be defined for platforms supporting the "l2 mru" CLI<br> |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;vlans</samp>](## "ethernet_interfaces.[].vlans") | String | | | | List of switchport vlans as string<br>For a trunk port this would be a range like "1-200,300"<br>For an access port this would be a single vlan "123"<br> |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;native_vlan</samp>](## "ethernet_interfaces.[].native_vlan") | Integer | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;native_vlan_tag</samp>](## "ethernet_interfaces.[].native_vlan_tag") | Boolean | | | | If setting both native_vlan and native_vlan_tag, native_vlan_tag takes precedence |
Expand Down Expand Up @@ -381,10 +382,13 @@

# Speed should be set in the format `<interface_speed>` or `forced <interface_speed>` or `auto <interface_speed>`.
speed: <str>
mtu: <int>
mtu: <int; 68-65535>

# "l2_mtu" should only be defined for platforms supporting the "l2 mtu" CLI
l2_mtu: <int>
l2_mtu: <int; 68-65535>

# "l2_mru" should only be defined for platforms supporting the "l2 mru" CLI
l2_mru: <int; 68-65535>

# List of switchport vlans as string
# For a trunk port this would be a range like "1-200,300"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;event</samp>](## "port_channel_interfaces.[].logging.event") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;link_status</samp>](## "port_channel_interfaces.[].logging.event.link_status") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;shutdown</samp>](## "port_channel_interfaces.[].shutdown") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;l2_mtu</samp>](## "port_channel_interfaces.[].l2_mtu") | Integer | | | | "l2_mtu" should only be defined for platforms supporting the "l2 mtu" CLI<br> |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;l2_mtu</samp>](## "port_channel_interfaces.[].l2_mtu") | Integer | | | Min: 68<br>Max: 65535 | "l2_mtu" should only be defined for platforms supporting the "l2 mtu" CLI<br> |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;l2_mru</samp>](## "port_channel_interfaces.[].l2_mru") | Integer | | | Min: 68<br>Max: 65535 | "l2_mru" should only be defined for platforms supporting the "l2 mru" CLI<br> |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;vlans</samp>](## "port_channel_interfaces.[].vlans") | String | | | | List of switchport vlans as string<br>For a trunk port this would be a range like "1-200,300"<br>For an access port this would be a single vlan "123"<br> |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;snmp_trap_link_change</samp>](## "port_channel_interfaces.[].snmp_trap_link_change") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;type</samp>](## "port_channel_interfaces.[].type") | String | | | Valid Values:<br>- <code>routed</code><br>- <code>switched</code><br>- <code>l3dot1q</code><br>- <code>l2dot1q</code> | l3dot1q and l2dot1q are used for sub-interfaces. The parent interface should be defined as routed.<br>Interface will not be listed in device documentation, unless "type" is set.<br> |
Expand Down Expand Up @@ -46,7 +47,7 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;l2_protocol</samp>](## "port_channel_interfaces.[].l2_protocol") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;encapsulation_dot1q_vlan</samp>](## "port_channel_interfaces.[].l2_protocol.encapsulation_dot1q_vlan") | Integer | | | | Vlan tag to configure on sub-interface |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;forwarding_profile</samp>](## "port_channel_interfaces.[].l2_protocol.forwarding_profile") | String | | | | L2 protocol forwarding profile |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;mtu</samp>](## "port_channel_interfaces.[].mtu") | Integer | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;mtu</samp>](## "port_channel_interfaces.[].mtu") | Integer | | | Min: 68<br>Max: 65535 | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;mlag</samp>](## "port_channel_interfaces.[].mlag") | Integer | | | Min: 1<br>Max: 2000 | MLAG ID |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;trunk_groups</samp>](## "port_channel_interfaces.[].trunk_groups") | List, items: String | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&lt;str&gt;</samp>](## "port_channel_interfaces.[].trunk_groups.[]") | String | | | | |
Expand Down Expand Up @@ -232,7 +233,10 @@
shutdown: <bool>

# "l2_mtu" should only be defined for platforms supporting the "l2 mtu" CLI
l2_mtu: <int>
l2_mtu: <int; 68-65535>

# "l2_mru" should only be defined for platforms supporting the "l2 mru" CLI
l2_mru: <int; 68-65535>

# List of switchport vlans as string
# For a trunk port this would be a range like "1-200,300"
Expand Down Expand Up @@ -299,7 +303,7 @@

# L2 protocol forwarding profile
forwarding_profile: <str>
mtu: <int>
mtu: <int; 68-65535>

# MLAG ID
mlag: <int; 1-2000>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1935,13 +1935,24 @@
},
"mtu": {
"type": "integer",
"minimum": 68,
"maximum": 65535,
"title": "MTU"
},
"l2_mtu": {
"type": "integer",
"minimum": 68,
"maximum": 65535,
"description": "\"l2_mtu\" should only be defined for platforms supporting the \"l2 mtu\" CLI\n",
"title": "L2 MTU"
},
"l2_mru": {
"type": "integer",
"minimum": 68,
"maximum": 65535,
"description": "\"l2_mru\" should only be defined for platforms supporting the \"l2 mru\" CLI\n",
"title": "L2 MRU"
},
"vlans": {
"type": "string",
"description": "List of switchport vlans as string\nFor a trunk port this would be a range like \"1-200,300\"\nFor an access port this would be a single vlan \"123\"\n",
Expand Down Expand Up @@ -10893,9 +10904,18 @@
},
"l2_mtu": {
"type": "integer",
"minimum": 68,
"maximum": 65535,
"description": "\"l2_mtu\" should only be defined for platforms supporting the \"l2 mtu\" CLI\n",
"title": "L2 MTU"
},
"l2_mru": {
"type": "integer",
"minimum": 68,
"maximum": 65535,
"description": "\"l2_mru\" should only be defined for platforms supporting the \"l2 mru\" CLI\n",
"title": "L2 MRU"
},
"vlans": {
"type": "string",
"description": "List of switchport vlans as string\nFor a trunk port this would be a range like \"1-200,300\"\nFor an access port this would be a single vlan \"123\"\n",
Expand Down Expand Up @@ -11117,6 +11137,8 @@
},
"mtu": {
"type": "integer",
"minimum": 68,
"maximum": 65535,
"title": "MTU"
},
"mlag": {
Expand Down
Loading