Skip to content

Commit

Permalink
Removed disabling autonegotiation and explicitly setting port speed a…
Browse files Browse the repository at this point in the history
…nd duplex mode as it is not part of readme (#3542)

Co-authored-by: KandukuriSudheer <[email protected]>
  • Loading branch information
mohanasm and KandukuriSudheer authored Oct 28, 2024
1 parent f615dea commit d339f86
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions feature/gribi/otg_tests/encap_frr/encap_frr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,6 @@ func dutInterface(p *ondatra.Port, dut *ondatra.DUTDevice) *oc.Interface {
i.Enabled = ygot.Bool(true)
}

if p.PMD() == ondatra.PMD100GBASEFR && dut.Vendor() != ondatra.CISCO {
e := i.GetOrCreateEthernet()
e.AutoNegotiate = ygot.Bool(false)
e.DuplexMode = oc.Ethernet_DuplexMode_FULL
e.PortSpeed = oc.IfEthernet_ETHERNET_SPEED_SPEED_100GB
}

ipv4, ok := portsIPv4[id]
if !ok {
return nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,6 @@ func configureDUT(t *testing.T, dut *ondatra.DUTDevice) {
for idx, a := range []attrs.Attributes{dutPort1, dutPort2, dutPort3, dutPort4, dutPort5, dutPort6, dutPort7, dutPort8} {
p := portList[idx]
intf := a.NewOCInterface(p.Name(), dut)
if p.PMD() == ondatra.PMD100GBASEFR && dut.Vendor() != ondatra.CISCO {
e := intf.GetOrCreateEthernet()
e.AutoNegotiate = ygot.Bool(false)
e.DuplexMode = oc.Ethernet_DuplexMode_FULL
e.PortSpeed = oc.IfEthernet_ETHERNET_SPEED_SPEED_100GB
}
gnmi.Replace(t, dut, d.Interface(p.Name()).Config(), intf)
}

Expand Down

0 comments on commit d339f86

Please sign in to comment.