1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

Validation of IRR Records (#151)

This commit is contained in:
Stefan Pratter
2020-03-31 11:04:26 +00:00
parent 25905a1c40
commit 45c25a6223
8 changed files with 149 additions and 6 deletions

View File

@@ -9,6 +9,36 @@ from django.utils.translation import ugettext_lazy as _
from peeringdb_server import settings
# Valid IRR Source values
# reference: http://www.irr.net/docs/list.html
IRR_SOURCE = (
"AFRINIC",
"ALTDB",
"AOLTW",
"APNIC",
"ARIN",
"BELL",
"BBOI",
"CANARIE",
"EASYNET",
"EPOCH",
"HOST",
"JPIRR",
"LEVEL3",
"NESTEGG",
"NTTCOM",
"OPENFACE",
"OTTIX",
"PANIX",
"RADB",
"REACH",
"RGNET",
"RIPE",
"RISQ",
"ROGERS",
"TC",
)
# RFC 5398 documentation asn range
ASN_RFC_5398_16BIT = (64496, 64511)
ASN_RFC_5398_32BIT = (65536, 65551)