-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add ExperimentController * add requirements.txt * add experiment example * add experiment schema pairing jsonschema files add experiment generator update peering-bgp script add experiment generator add experiment generator update api client scripts * move experiment-generator * refactor peering.py * update announcement_schema update requirements.txt add test prefixes to the schema update README
- Loading branch information
1 parent
01c143f
commit df95e84
Showing
9 changed files
with
621 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
{ | ||
"title": "Experiment schema", | ||
"type": "object", | ||
"minProperties": 1, | ||
"additionalProperties": false, | ||
"required": [ | ||
"description", | ||
"email", | ||
"rounds" | ||
], | ||
"properties": { | ||
"rounds": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"$ref": "#/definitions/prefixAnnouncement" | ||
} | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"email": { | ||
"type": "string", | ||
"format": "email" | ||
} | ||
}, | ||
"definitions": { | ||
"prefix": { | ||
"type": "string", | ||
"pattern": "^[0-9.]+/[0-9]+$|[ABCD]" | ||
}, | ||
"ASN": { | ||
"type": "number", | ||
"minimum": 1, | ||
"maximum": 4294967295 | ||
}, | ||
"allocatedPrefix": { | ||
"$ref": "#/definitions/prefix", | ||
"enum": [ | ||
"184.164.224.0/24", | ||
"204.9.168.0/24", | ||
"204.9.169.0/24", | ||
"204.9.170.0/24", | ||
"204.9.171.0/24" | ||
] | ||
}, | ||
"peeringASN": { | ||
"$ref": "#/definitions/ASN", | ||
"enum": [ | ||
47065, | ||
33207, | ||
61574, | ||
61575, | ||
61576, | ||
263842, | ||
263843, | ||
263844 | ||
] | ||
}, | ||
"peeringMux": { | ||
"type": "string", | ||
"enum": [ | ||
"amsterdam01", | ||
"clemson01", | ||
"gatech01", | ||
"grnet01", | ||
"isi01", | ||
"neu01", | ||
"saopaulo01", | ||
"sbu01", | ||
"seattle01", | ||
"ufmg01", | ||
"ufms01", | ||
"utah01", | ||
"uw01", | ||
"wisc01" | ||
] | ||
}, | ||
"announcement": { | ||
"type": "object", | ||
"required": [ | ||
"muxes" | ||
], | ||
"properties": { | ||
"muxes": { | ||
"type": "array", | ||
"minItems": 1, | ||
"uniqueItems": true, | ||
"items": { | ||
"$ref": "#/definitions/peeringMux" | ||
} | ||
}, | ||
"peers": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "number" | ||
} | ||
}, | ||
"prepend": { | ||
"type": "array", | ||
"minItems": 1, | ||
"maxItems": 5, | ||
"items": { | ||
"$ref": "#/definitions/ASN" | ||
} | ||
}, | ||
"origin": { | ||
"$ref": "#/definitions/peeringASN" | ||
} | ||
} | ||
}, | ||
"prefixAnnouncement": { | ||
"type": "object", | ||
"minProperties": 1, | ||
"propertyNames": { | ||
"$ref": "#/definitions/allocatedPrefix" | ||
}, | ||
"patternProperties": { | ||
"^": { | ||
"properties": { | ||
"withdraw": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/peeringMux" | ||
} | ||
}, | ||
"announce": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"$ref": "#/definitions/announcement" | ||
} | ||
} | ||
}, | ||
"minProperties": 1 | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.