Skip to content

Commit

Permalink
OTG RT5.4: Add FEC related config (#2083)
Browse files Browse the repository at this point in the history
* add FEC related config

* address review comment
  • Loading branch information
ANISH-GOTTAPU authored Sep 6, 2023
1 parent 69fcf72 commit c165aa6
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,21 @@ func (tc *testArgs) configureATE(t *testing.T) {
}
}

// Disable FEC for 100G-FR ports because Novus does not support it.
p100gbasefr := []string{}
for _, p := range tc.atePorts {
if p.PMD() == ondatra.PMD100GBASEFR {
p100gbasefr = append(p100gbasefr, p.ID())
}
}

if len(p100gbasefr) > 0 {
l1Settings := tc.top.Layer1().Add().SetName("L1").SetPortNames(p100gbasefr)
l1Settings.SetAutoNegotiate(true).SetIeeeMediaDefaults(false).SetSpeed("speed_100_gbps")
autoNegotiate := l1Settings.AutoNegotiation()
autoNegotiate.SetRsFec(false)
}

dstDev := tc.top.Devices().Add().SetName(agg.Name())
dstEth := dstDev.Ethernets().Add().SetName(ateDst.Name + ".Eth").SetMac(ateDst.MAC)
dstEth.Connection().SetLagName(agg.Name())
Expand Down

0 comments on commit c165aa6

Please sign in to comment.