Skip to content

Commit 3f0f800

Browse files
OAS Update
1 parent a49db73 commit 3f0f800

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

services/vpn/v1alpha1/vpn.json

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,7 @@
143143
"description": "BGP configuration effects all connections. (only for routingMode=BGP_ROUTE_BASED)",
144144
"properties": {
145145
"localAsn": {
146-
"description": "Local ASN for Private Use (reserved by IANA).",
147-
"oneOf": [
148-
{
149-
"$ref": "#/components/schemas/PrivateASN16Bit"
150-
},
151-
{
152-
"$ref": "#/components/schemas/PrivateASN32Bit"
153-
}
154-
]
146+
"$ref": "#/components/schemas/PrivateASN"
155147
},
156148
"overrideAdvertisedRoutes": {
157149
"description": "List of routes (IPv4 CIDR).",
@@ -258,15 +250,7 @@
258250
"BGPTunnelConfig": {
259251
"properties": {
260252
"remoteAsn": {
261-
"description": "Remote ASN for Private Use (reserved by IANA) (only for routingMode=BGP_ROUTE_BASED)",
262-
"oneOf": [
263-
{
264-
"$ref": "#/components/schemas/PrivateASN16Bit"
265-
},
266-
{
267-
"$ref": "#/components/schemas/PrivateASN32Bit"
268-
}
269-
]
253+
"$ref": "#/components/schemas/PrivateASN"
270254
}
271255
},
272256
"required": [
@@ -832,6 +816,17 @@
832816
}
833817
}
834818
},
819+
"PrivateASN": {
820+
"description": "ASN for private use (reserved by IANA)",
821+
"oneOf": [
822+
{
823+
"$ref": "#/components/schemas/PrivateASN16Bit"
824+
},
825+
{
826+
"$ref": "#/components/schemas/PrivateASN32Bit"
827+
}
828+
]
829+
},
835830
"PrivateASN16Bit": {
836831
"description": "16-bit Private ASN range.",
837832
"format": "int32",

0 commit comments

Comments
 (0)