[gest_crans] petit bonus d'aide à la saisie d'une mac fixe
Ignore-this: 90bf93bf17aa83f1cd84b81dbc47f54 darcs-hash:20120708002127-28565-1d1c70264948c9cf538982e8a1029eeda8997ad4.gz
This commit is contained in:
parent
54edb48c77
commit
95d711e690
2 changed files with 17 additions and 0 deletions
|
@ -104,4 +104,12 @@ if __name__ == '__main__' :
|
|||
"Tunnel-Medium-Type = IEEE-802",
|
||||
"Tunnel-Private-Group-Id = \"%d\"" % vlans[vlan]])
|
||||
|
||||
# On tente de logguer la dernière mac sur une prise donnée
|
||||
try:
|
||||
f = open('/usr/scripts/var/last_macs/' + prise,'w')
|
||||
f.write(mac)
|
||||
f.close()
|
||||
except:
|
||||
pass
|
||||
|
||||
sys.exit(r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue