From 1a00469fb0c2d55ebfdc33bfca49de845c48c4aa Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Thu, 2 Jul 2009 07:58:36 +0200 Subject: [PATCH] [switchs.py] oon u garde l'ordre des serveurs radius darcs-hash:20090702055836-bd074-b0ed33f3adf2b95a3e1d2ad50abfdbda06e39687.gz --- gestion/gen_confs/switchs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gestion/gen_confs/switchs.py b/gestion/gen_confs/switchs.py index 72259447..1a190b7f 100644 --- a/gestion/gen_confs/switchs.py +++ b/gestion/gen_confs/switchs.py @@ -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))