diff --git a/common/src/api/internal/shared.rs b/common/src/api/internal/shared.rs index 15ab4c66ce..c8d8b1c786 100644 --- a/common/src/api/internal/shared.rs +++ b/common/src/api/internal/shared.rs @@ -141,6 +141,7 @@ pub struct PortConfigV1 { /// BGP peers on this port pub bgp_peers: Vec, /// Whether or not to set autonegotiation + #[serde(default)] pub autoneg: bool, } diff --git a/openapi/bootstrap-agent.json b/openapi/bootstrap-agent.json index efd9c05fa9..0c5bd15050 100644 --- a/openapi/bootstrap-agent.json +++ b/openapi/bootstrap-agent.json @@ -512,6 +512,7 @@ }, "autoneg": { "description": "Whether or not to set autonegotiation", + "default": false, "type": "boolean" }, "bgp_peers": { @@ -559,7 +560,6 @@ }, "required": [ "addresses", - "autoneg", "bgp_peers", "port", "routes", diff --git a/openapi/nexus-internal.json b/openapi/nexus-internal.json index 82c799b78d..7785d232d9 100644 --- a/openapi/nexus-internal.json +++ b/openapi/nexus-internal.json @@ -4242,6 +4242,7 @@ }, "autoneg": { "description": "Whether or not to set autonegotiation", + "default": false, "type": "boolean" }, "bgp_peers": { @@ -4289,7 +4290,6 @@ }, "required": [ "addresses", - "autoneg", "bgp_peers", "port", "routes", diff --git a/openapi/sled-agent.json b/openapi/sled-agent.json index 6a0d692e99..9951392e98 100644 --- a/openapi/sled-agent.json +++ b/openapi/sled-agent.json @@ -5339,6 +5339,7 @@ }, "autoneg": { "description": "Whether or not to set autonegotiation", + "default": false, "type": "boolean" }, "bgp_peers": { @@ -5386,7 +5387,6 @@ }, "required": [ "addresses", - "autoneg", "bgp_peers", "port", "routes", diff --git a/openapi/wicketd.json b/openapi/wicketd.json index 32e3b70de2..804b2029c6 100644 --- a/openapi/wicketd.json +++ b/openapi/wicketd.json @@ -1547,6 +1547,7 @@ }, "autoneg": { "description": "Whether or not to set autonegotiation", + "default": false, "type": "boolean" }, "bgp_peers": { @@ -1594,7 +1595,6 @@ }, "required": [ "addresses", - "autoneg", "bgp_peers", "port", "routes", diff --git a/schema/rss-sled-plan.json b/schema/rss-sled-plan.json index 5086c38a9c..2ef7a7b58a 100644 --- a/schema/rss-sled-plan.json +++ b/schema/rss-sled-plan.json @@ -366,7 +366,6 @@ "type": "object", "required": [ "addresses", - "autoneg", "bgp_peers", "port", "routes", @@ -384,6 +383,7 @@ }, "autoneg": { "description": "Whether or not to set autonegotiation", + "default": false, "type": "boolean" }, "bgp_peers": {