]> git.llucax.com Git - software/pymin.git/commitdiff
Bug fix for the vpn --net=<VPN> fixed
authorNicolas Emiliani <nemiliani@integratech.com.ar>
Mon, 12 Nov 2007 16:01:36 +0000 (13:01 -0300)
committerNicolas Emiliani <nemiliani@integratech.com.ar>
Mon, 12 Nov 2007 16:01:36 +0000 (13:01 -0300)
pymin/services/vpn/__init__.py

index 789d137ca8f2bf6223584ac6e2e2e74a1269ec1d..1e84361fbf5f4a6f219cec891ba2c846e33235da 100644 (file)
@@ -101,7 +101,7 @@ class VpnHandler(Restorable, ConfigWriter,
     @handler('usage: start <vpn_name>')
     def start(self, vpn_src):
         if vpn_src in self.vpns:
     @handler('usage: start <vpn_name>')
     def start(self, vpn_src):
         if vpn_src in self.vpns:
-            call(('tincd','--net=',vpn_src))
+            call(('tincd','--net='vpn_src))
 
     @handler('usage: stop <vpn_name>')
     def stop(self, vpn_src):
 
     @handler('usage: stop <vpn_name>')
     def stop(self, vpn_src):
@@ -165,7 +165,6 @@ class VpnHandler(Restorable, ConfigWriter,
 
 if __name__ == '__main__':
     v = VpnHandler()
 
 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()
     v.commit()