|
154 | 154 | ], |
155 | 155 | "type": "object" |
156 | 156 | }, |
| 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 | + }, |
157 | 170 | "AvailabilityZone": { |
158 | 171 | "description": "Object that represents an availability zone.", |
159 | 172 | "example": "eu01-1", |
|
219 | 232 | "asPathContainsAny": { |
220 | 233 | "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", |
221 | 234 | "items": { |
222 | | - "$ref": "#/components/schemas/PrivateASN" |
| 235 | + "$ref": "#/components/schemas/ASN" |
223 | 236 | }, |
224 | 237 | "maxItems": 10, |
225 | 238 | "type": "array" |
|
237 | 250 | "firstASN": { |
238 | 251 | "allOf": [ |
239 | 252 | { |
240 | | - "$ref": "#/components/schemas/PrivateASN" |
| 253 | + "$ref": "#/components/schemas/ASN" |
241 | 254 | } |
242 | 255 | ], |
243 | 256 | "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 | 464 | "type": "string" |
452 | 465 | }, |
453 | 466 | "remoteAsn": { |
454 | | - "$ref": "#/components/schemas/PrivateASN" |
| 467 | + "$ref": "#/components/schemas/ASN" |
455 | 468 | } |
456 | 469 | }, |
457 | 470 | "required": [ |
|
601 | 614 | "asPathContainsAny": { |
602 | 615 | "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", |
603 | 616 | "items": { |
604 | | - "$ref": "#/components/schemas/PrivateASN" |
| 617 | + "$ref": "#/components/schemas/ASN" |
605 | 618 | }, |
606 | 619 | "maxItems": 10, |
607 | 620 | "type": "array" |
|
619 | 632 | "firstASN": { |
620 | 633 | "allOf": [ |
621 | 634 | { |
622 | | - "$ref": "#/components/schemas/PrivateASN" |
| 635 | + "$ref": "#/components/schemas/ASN" |
623 | 636 | } |
624 | 637 | ], |
625 | 638 | "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 | 1402 | "asPathContainsAny": { |
1390 | 1403 | "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", |
1391 | 1404 | "items": { |
1392 | | - "$ref": "#/components/schemas/PrivateASN" |
| 1405 | + "$ref": "#/components/schemas/ASN" |
1393 | 1406 | }, |
1394 | 1407 | "maxItems": 10, |
1395 | 1408 | "type": "array" |
|
1407 | 1420 | "firstASN": { |
1408 | 1421 | "allOf": [ |
1409 | 1422 | { |
1410 | | - "$ref": "#/components/schemas/PrivateASN" |
| 1423 | + "$ref": "#/components/schemas/ASN" |
1411 | 1424 | } |
1412 | 1425 | ], |
1413 | 1426 | "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" |
|
0 commit comments