From: Nicolas Emiliani Date: Mon, 12 Nov 2007 16:01:36 +0000 (-0300) Subject: Bug fix for the vpn --net= fixed X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/c24ff8fe271afa669950036d6d91b071a01d6e34?ds=inline;hp=--cc Bug fix for the vpn --net= fixed --- c24ff8fe271afa669950036d6d91b071a01d6e34 diff --git a/pymin/services/vpn/__init__.py b/pymin/services/vpn/__init__.py index 789d137..1e84361 100644 --- a/pymin/services/vpn/__init__.py +++ b/pymin/services/vpn/__init__.py @@ -101,7 +101,7 @@ class VpnHandler(Restorable, ConfigWriter, @handler('usage: start ') def start(self, vpn_src): if vpn_src in self.vpns: - call(('tincd','--net=',vpn_src)) + call(('tincd','--net='+ vpn_src)) @handler('usage: stop ') def stop(self, vpn_src): @@ -165,7 +165,6 @@ class VpnHandler(Restorable, ConfigWriter, if __name__ == '__main__': v = VpnHandler() - v.add('test','127.0.0.1','192.168.0.1','255.255.255.0') - #v.host.add('test', 'sarasa' ,'127.0.0.1', '205.25.36.36','kjdhfkbdskljvkjblkbjeslkjbvkljbselvslberjhbvslbevlhb') - v.delete('test') + v.add('prueba','sarasa','192.168.0.188','255.255.255.0') + v.host.add('prueba', 'azazel' ,'192.168.0.77', '192.168.0.0','kjdhfkbdskljvkjblkbjeslkjbvkljbselvslberjhbvslbevlhb') v.commit()