Skip to content

Commit

Permalink
improve docstring for optional fec setting (#7083)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nieuwejaar authored Nov 16, 2024
1 parent 81184e3 commit 8a6182a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion common/src/api/external/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2513,7 +2513,9 @@ pub struct SwitchPortLinkConfig {
/// The maximum transmission unit for this link.
pub mtu: u16,

/// The forward error correction mode of the link.
/// The requested forward-error correction method. If this is not
/// specified, the standard FEC for the underlying media will be applied
/// if it can be determined.
pub fec: Option<LinkFec>,

/// The configured speed of the link.
Expand Down
4 changes: 3 additions & 1 deletion nexus/types/src/external_api/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,9 @@ pub struct LinkConfigCreate {
/// The link-layer discovery protocol (LLDP) configuration for the link.
pub lldp: LldpLinkConfigCreate,

/// The forward error correction mode of the link.
/// The requested forward-error correction method. If this is not
/// specified, the standard FEC for the underlying media will be applied
/// if it can be determined.
pub fec: Option<LinkFec>,

/// The speed of the link.
Expand Down
4 changes: 2 additions & 2 deletions openapi/nexus.json
Original file line number Diff line number Diff line change
Expand Up @@ -17167,7 +17167,7 @@
},
"fec": {
"nullable": true,
"description": "The forward error correction mode of the link.",
"description": "The requested forward-error correction method. If this is not specified, the standard FEC for the underlying media will be applied if it can be determined.",
"allOf": [
{
"$ref": "#/components/schemas/LinkFec"
Expand Down Expand Up @@ -20411,7 +20411,7 @@
},
"fec": {
"nullable": true,
"description": "The forward error correction mode of the link.",
"description": "The requested forward-error correction method. If this is not specified, the standard FEC for the underlying media will be applied if it can be determined.",
"allOf": [
{
"$ref": "#/components/schemas/LinkFec"
Expand Down

0 comments on commit 8a6182a

Please sign in to comment.