[switchs.py] oon u garde l'ordre des serveurs radius
darcs-hash:20090702055836-bd074-b0ed33f3adf2b95a3e1d2ad50abfdbda06e39687.gz
This commit is contained in:
parent
9d8201301d
commit
1a00469fb0
1 changed files with 4 additions and 2 deletions
|
@ -264,7 +264,8 @@ exit
|
|||
|
||||
self.aff.cycle()
|
||||
|
||||
shuffle(self.rad_servs)
|
||||
## On veut par défaut tout confier au serveur radius principal
|
||||
#shuffle(self.rad_servs)
|
||||
rad = self.rad_template * len(self.rad_servs)
|
||||
params = { 'switch' : switch, 'bat' : bat.upper() ,
|
||||
'radius_key' : radius_key ,
|
||||
|
@ -272,7 +273,8 @@ exit
|
|||
|
||||
self.aff.cycle()
|
||||
|
||||
if '-g' in opts or '--get-conf' in [ opt for opt,arg in opts]:
|
||||
options = [ opt for opt,arg in opts]
|
||||
if '-g' in options or '--get-conf' in options:
|
||||
old_config = NamedTemporaryFile()
|
||||
res, msg = commands.getstatusoutput("scp bat%s-%i:cfg/startup-config %s" % (bat, sw_num, old_config.name))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue