Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serde default for autoneg param #4591

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/src/api/internal/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ pub struct PortConfigV1 {
/// BGP peers on this port
pub bgp_peers: Vec<BgpPeerConfig>,
/// Whether or not to set autonegotiation
#[serde(default)]
pub autoneg: bool,
}

Expand Down
2 changes: 1 addition & 1 deletion openapi/bootstrap-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@
},
"autoneg": {
"description": "Whether or not to set autonegotiation",
"default": false,
"type": "boolean"
},
"bgp_peers": {
Expand Down Expand Up @@ -559,7 +560,6 @@
},
"required": [
"addresses",
"autoneg",
"bgp_peers",
"port",
"routes",
Expand Down
2 changes: 1 addition & 1 deletion openapi/nexus-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -4242,6 +4242,7 @@
},
"autoneg": {
"description": "Whether or not to set autonegotiation",
"default": false,
"type": "boolean"
},
"bgp_peers": {
Expand Down Expand Up @@ -4289,7 +4290,6 @@
},
"required": [
"addresses",
"autoneg",
"bgp_peers",
"port",
"routes",
Expand Down
2 changes: 1 addition & 1 deletion openapi/sled-agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -5339,6 +5339,7 @@
},
"autoneg": {
"description": "Whether or not to set autonegotiation",
"default": false,
"type": "boolean"
},
"bgp_peers": {
Expand Down Expand Up @@ -5386,7 +5387,6 @@
},
"required": [
"addresses",
"autoneg",
"bgp_peers",
"port",
"routes",
Expand Down
2 changes: 1 addition & 1 deletion openapi/wicketd.json
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,7 @@
},
"autoneg": {
"description": "Whether or not to set autonegotiation",
"default": false,
"type": "boolean"
},
"bgp_peers": {
Expand Down Expand Up @@ -1594,7 +1595,6 @@
},
"required": [
"addresses",
"autoneg",
"bgp_peers",
"port",
"routes",
Expand Down
2 changes: 1 addition & 1 deletion schema/rss-sled-plan.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@
"type": "object",
"required": [
"addresses",
"autoneg",
"bgp_peers",
"port",
"routes",
Expand All @@ -384,6 +383,7 @@
},
"autoneg": {
"description": "Whether or not to set autonegotiation",
"default": false,
"type": "boolean"
},
"bgp_peers": {
Expand Down
Loading