Skip to content

Commit

Permalink
serde default for autoneg param
Browse files Browse the repository at this point in the history
  • Loading branch information
rcgoodfellow committed Dec 1, 2023
1 parent e3887d5 commit c6abe1a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
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

0 comments on commit c6abe1a

Please sign in to comment.