Skip to content

Commit e5f6268

Browse files
authored
Add LAG support for Dell OS10; add passive mode test (#1535)
1 parent a54df67 commit e5f6268

File tree

4 files changed

+42
-1
lines changed

4 files changed

+42
-1
lines changed

netsim/ansible/templates/initial/dellos10.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface {{ mgmt.ifname|default('mgmt1/1/1') }}
3131
{% for l in interfaces|default([]) %}
3232
interface {{ l.ifname }}
3333
no shutdown
34-
{% if l.virtual_interface is not defined %}
34+
{% if l.virtual_interface is not defined or l.type=='lag' %}
3535
no switchport
3636
{% endif %}
3737
{% if l.vrf is defined %}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% for intf in interfaces if intf.type == 'lag' %}
2+
{% for ch in interfaces if ch.lag._parentindex|default(False) == intf.linkindex %}
3+
!
4+
{% set _lag_mode =
5+
'on' if intf.lag.lacp|default('') == 'off' else
6+
'active' if intf.lag.lacp_mode|default('') == 'active' else
7+
'passive' %}
8+
interface {{ ch.ifname }}
9+
channel-group {{ intf.lag.ifindex }} mode {{ _lag_mode }}
10+
lacp rate {{ 'fast' if intf.lag.lacp|default('') == 'fast' else 'normal' }}
11+
{% endfor %}
12+
{% endfor %}

netsim/devices/dellos10.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: Dell OS10
33
interface_name: ethernet1/1/{ifindex}
44
mgmt_if: mgmt1/1/1
55
loopback_interface_name: loopback{ifindex}
6+
lag_interface_name: "port-channel{lag.ifindex}"
67
features:
78
initial:
89
ipv4:
@@ -21,6 +22,8 @@ features:
2122
irb: true
2223
gateway:
2324
protocol: [ anycast, vrrp ]
25+
lag:
26+
passive: True
2427
ospf: true
2528
stp:
2629
supported_protocols: [ stp, rstp, mstp, pvrst ]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
message: |
3+
The device under test is a router with a L3 LAG link connected to a FRR device. The
4+
devices should be able to establish an OSPF adjacency, with the DUT in passive mode for LACP.
5+
6+
groups:
7+
switches:
8+
members: [ dut, xr ]
9+
module: [ lag, ospf ]
10+
11+
nodes:
12+
dut:
13+
lag.lacp_mode: passive
14+
xr:
15+
device: frr
16+
17+
links:
18+
- lag.members: [ dut-xr, dut-xr ]
19+
20+
validate:
21+
adj:
22+
description: Check OSPF adjacencies
23+
wait_msg: Waiting for OSPF adjacency process to complete
24+
wait: 50
25+
nodes: [ xr ]
26+
plugin: ospf_neighbor(nodes.dut.ospf.router_id)

0 commit comments

Comments
 (0)