[switchs.py] perm et groupe par défaut

Ignore-this: 86e57557309f7a47e12d44fd6889055

darcs-hash:20120722184626-28565-17e7095f55421e6b40ddf94ff14add8ac94afdf1.gz
This commit is contained in:
Daniel STAN 2012-07-22 20:46:26 +02:00
parent 149d25e422
commit 708bfef7d6

View file

@ -15,6 +15,7 @@
"""
import sys, os, commands, smtplib, tempfile, getopt
os.umask(0117)
sys.path.append('/usr/scripts/gestion')
from hptools import hpswitch, sw_chbre
@ -552,6 +553,7 @@ aaa port-access mac-based %(prise)s unauth-vid 1
my_config += self.dhcp_snooping_template
fd.write(my_config % params)
fd.close()
os.chown(self.CONF_REP + switch + '.conf',-1,4)
if __name__ == '__main__' :
opts, args = getopt.getopt(sys.argv[1:], 'hga', ['get-conf', 'help', 'all', 'header=' ])