Skip to content

Commit b729c30

Browse files
committed
one each of fec: None and fec: Some(LinkFec::None)
1 parent 5c6e928 commit b729c30

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

cli/tests/data/test_switch_port_settings_show.stdout

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Destination Nexthop Vlan Preference
1616

1717
switch1/qsfp0
1818
=============
19-
Autoneg Fec Speed
20-
false None Speed100G
19+
Autoneg Fec Speed
20+
false Some(None) Speed100G
2121

2222
Address Lot VLAN
2323
169.254.20.2/30 initial-infra None

cli/tests/test_net.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ use chrono::prelude::*;
99
use httpmock::MockServer;
1010
use oxide::types::{
1111
AddressLot, AddressLotBlock, AddressLotBlockResultsPage, AddressLotKind, AddressLotResultsPage,
12-
BgpConfig, BgpConfigResultsPage, BgpPeer, ImportExportPolicy, LinkSpeed, NameOrId, SwitchPort,
13-
SwitchPortAddressConfig, SwitchPortConfig, SwitchPortGeometry2, SwitchPortLinkConfig,
14-
SwitchPortResultsPage, SwitchPortRouteConfig, SwitchPortSettings, SwitchPortSettingsView,
12+
BgpConfig, BgpConfigResultsPage, BgpPeer, ImportExportPolicy, LinkFec, LinkSpeed, NameOrId,
13+
SwitchPort, SwitchPortAddressConfig, SwitchPortConfig, SwitchPortGeometry2,
14+
SwitchPortLinkConfig, SwitchPortResultsPage, SwitchPortRouteConfig, SwitchPortSettings,
15+
SwitchPortSettingsView,
1516
};
1617
use oxide_httpmock::MockServerExt;
1718
use uuid::Uuid;
@@ -258,7 +259,7 @@ fn test_port_config() {
258259
link_lldp: Vec::new(),
259260
links: vec![SwitchPortLinkConfig {
260261
autoneg: false,
261-
fec: None,
262+
fec: Some(LinkFec::None),
262263
link_name: String::from("phy0"),
263264
lldp_link_config_id: None,
264265
mtu: 1500,

0 commit comments

Comments
 (0)