From: or3st3s Date: Mon, 12 Nov 2007 12:32:06 +0000 (+0000) Subject: Merge branch 'master' into suse X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/04c59b8b5cb1b5603f370113c65875bef035b8e6?hp=94692caff0340f22badcf9540b4dc7fe3d93f067 Merge branch 'master' into suse --- diff --git a/config.py b/config.py index ff75856..5854e34 100644 --- a/config.py +++ b/config.py @@ -47,16 +47,19 @@ class Root(Handler): proxy = ProxyHandler( pickle_dir = join(pickle_path, 'proxy'), - config_dir = join(config_path, 'proxy')) + config_dir = '/etc/squid') vrrp = VrrpHandler( pickle_dir = join(pickle_path, 'vrrp'), config_dir = join(config_path, 'vrrp'), pid_dir = '/var/run') - - qos = QoSHandler( - pickle_dir = join(pickle_path, 'qos'), - config_dir = join(config_path, 'qos')) + + vpn = VpnHandler( + pickle_dir = join(pickle_path, 'vpn'), + config_dir = '/etc/tinc') + #qos = QoSHandler( + # pickle_dir = join(pickle_path, 'qos'), + # config_dir = join(config_path, 'qos')) bind_addr = \ ( diff --git a/pymin/services/util.py b/pymin/services/util.py index 739b109..867b3b9 100644 --- a/pymin/services/util.py +++ b/pymin/services/util.py @@ -216,9 +216,8 @@ def get_network_devices(): d[name].addrs[from_addr] = Address(from_addr,24, peer=to_addr) except IndexError: pass - return d - + def get_peers(): p = subprocess.Popen(('ip', '-o', 'addr'), stdout=subprocess.PIPE, close_fds=True)