From 687d77459d72522794985c4a437016a25adf4b37 Mon Sep 17 00:00:00 2001 From: glondu Date: Thu, 2 Feb 2006 03:11:45 +0100 Subject: [PATCH] RSTP. darcs-hash:20060202021145-68412-43635f74e61aba189d814bfd9b92facd16da26f7.gz --- gestion/gen_confs/switchs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gestion/gen_confs/switchs.py b/gestion/gen_confs/switchs.py index 326331d3..e81ce1aa 100755 --- a/gestion/gen_confs/switchs.py +++ b/gestion/gen_confs/switchs.py @@ -31,7 +31,7 @@ class switch(gen_config) : # Répertoire ou écire les fichiers de conf CONF_REP='/tmp/' # avec un / derrière - config = """; %(modele)s Configuration Editor; Created on release #H.08.72 + config = """; %(modele)s Configuration Editor; Created on release #H.08.86 hostname "%(switch)s" ;-------------------------------------------------------- Snmp @@ -93,8 +93,12 @@ ip ssh filetransfer spanning-tree protocol-version rstp ; Config des uplinks no spanning-tree %(uplinks)s edge-port +spanning-tree %(uplinks)s point-to-point-mac force-true +spanning-tree %(uplinks)s priority 6 ; Config des prises adhérent +spanning-tree %(non_uplinks)s edge-port spanning-tree %(non_uplinks)s point-to-point-mac auto +spanning-tree %(non_uplinks)s priority 8 ; On active spanning-tree ;------------------------------------------------------- Serveurs radius