Nouvelles règles pour la limitation de debit et nouveau peering avec la dsi
This commit is contained in:
parent
cc0b6bf013
commit
8b86e04dba
2 changed files with 16 additions and 8 deletions
|
@ -53,12 +53,20 @@ mask = [24]
|
|||
now=datetime.datetime.now()
|
||||
if now.hour >= 6 and now.hour < 19 and now.weekday() < 5 and not is_ferie():
|
||||
#: Débit maximal autorisé
|
||||
debit_max = 150 # mbits per second en connexion de jour
|
||||
debit_max = { 'total' : 250,
|
||||
'out' : 250,
|
||||
'wifi' : 100,
|
||||
'fil' : 150 }
|
||||
# mbits per second en connexion de jour
|
||||
#: Est-ce qu'on est en connexion de jour ou de nuit/week-end ?
|
||||
debit_jour = True
|
||||
else:
|
||||
#: Débit maximal autorisé
|
||||
debit_max = 500 # mbits per second en conn de nuit et du week-end
|
||||
debit_max = { 'total' : 600,
|
||||
'out' : 600,
|
||||
'wifi' : 150,
|
||||
'fil' : 450 }
|
||||
# mbits per second en conn de nuit et du week-end
|
||||
#: Est-ce qu'on est en connexion de jour ou de nuit/week-end ?
|
||||
debit_jour = False
|
||||
|
||||
|
@ -73,7 +81,7 @@ federez_upload_max = 10 #mbytes per second
|
|||
|
||||
# Debit appartement down max
|
||||
# TODO : mettre en place dans komaz.py
|
||||
appt_download_max = debit_max/10
|
||||
appt_download_max = debit_max['total']/10
|
||||
|
||||
#: Liste des réseaux non routables
|
||||
reseaux_non_routables = [ '10.0.0.0/8', '172.16.0.0/12','198.18.0.0/15',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue