[switchs.py] perm et groupe par défaut
Ignore-this: 86e57557309f7a47e12d44fd6889055 darcs-hash:20120722184626-28565-17e7095f55421e6b40ddf94ff14add8ac94afdf1.gz
This commit is contained in:
parent
149d25e422
commit
708bfef7d6
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys, os, commands, smtplib, tempfile, getopt
|
import sys, os, commands, smtplib, tempfile, getopt
|
||||||
|
os.umask(0117)
|
||||||
|
|
||||||
sys.path.append('/usr/scripts/gestion')
|
sys.path.append('/usr/scripts/gestion')
|
||||||
from hptools import hpswitch, sw_chbre
|
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
|
my_config += self.dhcp_snooping_template
|
||||||
fd.write(my_config % params)
|
fd.write(my_config % params)
|
||||||
fd.close()
|
fd.close()
|
||||||
|
os.chown(self.CONF_REP + switch + '.conf',-1,4)
|
||||||
|
|
||||||
if __name__ == '__main__' :
|
if __name__ == '__main__' :
|
||||||
opts, args = getopt.getopt(sys.argv[1:], 'hga', ['get-conf', 'help', 'all', 'header=' ])
|
opts, args = getopt.getopt(sys.argv[1:], 'hga', ['get-conf', 'help', 'all', 'header=' ])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue