migration komaz->odlyd
This commit is contained in:
parent
752f84ca35
commit
5f9ee2e593
4 changed files with 11 additions and 2 deletions
|
@ -144,7 +144,7 @@ droits_mailing_listes = {'roots' : [ u'Nounou', u'Apprenti'],
|
|||
cimetiere = '/home/cimetiere'
|
||||
|
||||
#: Adresses mac utiles
|
||||
mac_komaz = '00:19:BB:31:3B:80'
|
||||
mac_komaz = 'a0:d3:c1:00:f4:04'
|
||||
mac_wifi = '00:0f:1f:66:e0:e8'
|
||||
mac_titanic = 'aa:73:65:63:6f:76'
|
||||
|
||||
|
|
|
@ -16,6 +16,14 @@ dev = {
|
|||
'adm' : 'crans.2',
|
||||
'tun-ovh' : 'tun-ovh'
|
||||
},
|
||||
'odlyd': {
|
||||
'out' : 'ens',
|
||||
'wifi' : 'crans.3',
|
||||
'fil' : 'crans',
|
||||
'app' : 'crans.21',
|
||||
'adm' : 'crans.2',
|
||||
'tun-ovh' : 'tun-ovh'
|
||||
},
|
||||
'zamok': {
|
||||
'fil' : 'crans',
|
||||
'adm' : 'crans.2'
|
||||
|
|
|
@ -18,6 +18,7 @@ hostname = socket.gethostname()
|
|||
#: Associe à un ``hostname`` la classe du pare-feu correspondant
|
||||
firewall = {
|
||||
'komaz' : komaz.firewall,
|
||||
'odlyd' : komaz.firewall,
|
||||
'zamok' : zamok.firewall,
|
||||
'routeur' : routeur.firewall,
|
||||
'gordon' : base.firewall_routeur,
|
||||
|
|
|
@ -534,7 +534,7 @@ class firewall(base.firewall_routeur):
|
|||
for int_key in ['app']:
|
||||
try:
|
||||
utils.tc('qdisc del dev %s root' % dev[int_key])
|
||||
except TcError:
|
||||
except utils.TcError:
|
||||
pass
|
||||
utils.tc('qdisc add dev %s root handle 1: htb r2q 1' % dev[int_key])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue