- ### Check the whitelist
- ### It consists of lines of the form: <slice hrn> <bw>
- whitelist = {}
- f = open(SFA_VINI_WHITELIST)
- for line in f.readlines():
- (slice, maxbw) = line.split()
- whitelist[slice] = maxbw
-
- if hrn in whitelist:
- maxbw = whitelist[hrn]
- else:
- raise PermissionError("%s not in VINI whitelist" % hrn)
-