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))