Skip to content

Commit 7ef816d

Browse files
OAS Update
1 parent 1134de6 commit 7ef816d

2 files changed

Lines changed: 34 additions & 8 deletions

File tree

services/vpn/v1/vpn.json

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,19 @@
154154
],
155155
"type": "object"
156156
},
157+
"ASN": {
158+
"description": "Number of an Autonomous System. Both 16Bit and 32Bit ranges are supported, excluding values reserved by:\n * RFC 7607 (0)\n * RFC 6793 (23456, AS_TRANS)\n * RFC 7300 (65535 and 4294967295, the \"Last ASNs\")\n",
159+
"format": "int64",
160+
"maximum": 4294967294,
161+
"minimum": 1,
162+
"not": {
163+
"enum": [
164+
23456,
165+
65535
166+
]
167+
},
168+
"type": "integer"
169+
},
157170
"AvailabilityZone": {
158171
"description": "Object that represents an availability zone.",
159172
"example": "eu01-1",
@@ -219,7 +232,7 @@
219232
"asPathContainsAny": {
220233
"description": "Matches if the AS-PATH contains any one of the listed ASNs (logical OR within the list).\nTreated as an unordered set; ordering is not preserved by the storage layer. When\ncombined with firstASN, both conditions must hold (logical AND, consistent with the\nrest of the match block). If firstASN is also listed here, its presence as the first\nhop is sufficient to satisfy this list; no duplicate hop is required.\n",
221234
"items": {
222-
"$ref": "#/components/schemas/PrivateASN"
235+
"$ref": "#/components/schemas/ASN"
223236
},
224237
"maxItems": 10,
225238
"type": "array"
@@ -237,7 +250,7 @@
237250
"firstASN": {
238251
"allOf": [
239252
{
240-
"$ref": "#/components/schemas/PrivateASN"
253+
"$ref": "#/components/schemas/ASN"
241254
}
242255
],
243256
"description": "Matches if the first ASN (immediate neighbor) in the AS-PATH equals this ASN. Combines\nwith asPathContainsAny using logical AND: when both are set, the first ASN must equal\nfirstASN AND the path must additionally contain at least one ASN from asPathContainsAny.\n"
@@ -451,7 +464,7 @@
451464
"type": "string"
452465
},
453466
"remoteAsn": {
454-
"$ref": "#/components/schemas/PrivateASN"
467+
"$ref": "#/components/schemas/ASN"
455468
}
456469
},
457470
"required": [
@@ -601,7 +614,7 @@
601614
"asPathContainsAny": {
602615
"description": "Matches if the AS-PATH contains any one of the listed ASNs (logical OR within the list).\nTreated as an unordered set; ordering is not preserved by the storage layer. When\ncombined with firstASN, both conditions must hold (logical AND, consistent with the\nrest of the match block). If firstASN is also listed here, its presence as the first\nhop is sufficient to satisfy this list; no duplicate hop is required.\n",
603616
"items": {
604-
"$ref": "#/components/schemas/PrivateASN"
617+
"$ref": "#/components/schemas/ASN"
605618
},
606619
"maxItems": 10,
607620
"type": "array"
@@ -619,7 +632,7 @@
619632
"firstASN": {
620633
"allOf": [
621634
{
622-
"$ref": "#/components/schemas/PrivateASN"
635+
"$ref": "#/components/schemas/ASN"
623636
}
624637
],
625638
"description": "Matches if the first ASN (immediate neighbor) in the AS-PATH equals this ASN. Combines\nwith asPathContainsAny using logical AND: when both are set, the first ASN must equal\nfirstASN AND the path must additionally contain at least one ASN from asPathContainsAny.\n"
@@ -1389,7 +1402,7 @@
13891402
"asPathContainsAny": {
13901403
"description": "Matches if the AS-PATH contains any one of the listed ASNs (logical OR within the list).\nTreated as an unordered set; ordering is not preserved by the storage layer. When\ncombined with firstASN, both conditions must hold (logical AND, consistent with the\nrest of the match block). If firstASN is also listed here, its presence as the first\nhop is sufficient to satisfy this list; no duplicate hop is required.\n",
13911404
"items": {
1392-
"$ref": "#/components/schemas/PrivateASN"
1405+
"$ref": "#/components/schemas/ASN"
13931406
},
13941407
"maxItems": 10,
13951408
"type": "array"
@@ -1407,7 +1420,7 @@
14071420
"firstASN": {
14081421
"allOf": [
14091422
{
1410-
"$ref": "#/components/schemas/PrivateASN"
1423+
"$ref": "#/components/schemas/ASN"
14111424
}
14121425
],
14131426
"description": "Matches if the first ASN (immediate neighbor) in the AS-PATH equals this ASN. Combines\nwith asPathContainsAny using logical AND: when both are set, the first ASN must equal\nfirstASN AND the path must additionally contain at least one ASN from asPathContainsAny.\n"

services/vpn/v1alpha1/vpn.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,19 @@
134134
],
135135
"type": "object"
136136
},
137+
"ASN": {
138+
"description": "Number of an Autonomous System. Both 16Bit and 32Bit ranges are supported, excluding values reserved by:\n * RFC 7607 (0)\n * RFC 6793 (23456, AS_TRANS)\n * RFC 7300 (65535 and 4294967295, the \"Last ASNs\")\n",
139+
"format": "int64",
140+
"maximum": 4294967294,
141+
"minimum": 1,
142+
"not": {
143+
"enum": [
144+
23456,
145+
65535
146+
]
147+
},
148+
"type": "integer"
149+
},
137150
"AvailabilityZone": {
138151
"description": "Object that represents an availability zone.",
139152
"example": "eu01-1",
@@ -268,7 +281,7 @@
268281
"BGPTunnelConfig": {
269282
"properties": {
270283
"remoteAsn": {
271-
"$ref": "#/components/schemas/PrivateASN"
284+
"$ref": "#/components/schemas/ASN"
272285
}
273286
},
274287
"required": [

0 commit comments

Comments
 (0)