]>
git.llucax.com Git - software/pymin.git/log
Leandro Lucarella [Sun, 18 Nov 2007 05:52:58 +0000 (02:52 -0300)]
Add logging to pymin.services.proxy module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:52 +0000 (02:52 -0300)]
Add logging to pymin.services.ppp module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:41 +0000 (02:52 -0300)]
Add logging to pymin.services.nat module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:33 +0000 (02:52 -0300)]
Add logging to pymin.services.ip module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:22 +0000 (02:52 -0300)]
Add logging to pymin.services.firewall module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:13 +0000 (02:52 -0300)]
Add logging to pymin.services.dns module.
Leandro Lucarella [Sun, 18 Nov 2007 05:52:03 +0000 (02:52 -0300)]
Add logging to pymin.services.dhcp module.
Leandro Lucarella [Sun, 18 Nov 2007 05:51:10 +0000 (02:51 -0300)]
Add logging to pymin.services.util module.
Leandro Lucarella [Sat, 17 Nov 2007 22:40:13 +0000 (19:40 -0300)]
Add logging to pymin.dispatcher module.
Leandro Lucarella [Sat, 17 Nov 2007 22:39:52 +0000 (19:39 -0300)]
Improve logging format.
Leandro Lucarella [Sat, 17 Nov 2007 22:31:32 +0000 (19:31 -0300)]
Use %r instead of %s for logging.
Leandro Lucarella [Fri, 16 Nov 2007 19:50:12 +0000 (16:50 -0300)]
Add basic initial logging support.
Federico Cuello [Tue, 13 Nov 2007 02:06:03 +0000 (23:06 -0300)]
qos implementation (working)
Federico Cuello [Tue, 13 Nov 2007 01:16:19 +0000 (22:16 -0300)]
qos template fixes
Leandro Lucarella [Sun, 18 Nov 2007 02:38:21 +0000 (23:38 -0300)]
Remove ReturnNot0Error, use subprocess.check_call instead.
Leandro Lucarella [Tue, 13 Nov 2007 02:58:27 +0000 (23:58 -0300)]
Fix config file and DEBUG settings for testing.
Leandro Lucarella [Mon, 12 Nov 2007 16:54:52 +0000 (13:54 -0300)]
Add a small utility to send pymin commands.
Nicolas Emiliani [Mon, 12 Nov 2007 16:16:48 +0000 (13:16 -0300)]
Merge or3st3s@baryon.com.ar:workspace/pymin
Nicolas Emiliani [Mon, 12 Nov 2007 16:14:24 +0000 (13:14 -0300)]
VpnHandler bugfixes.
Nicolas Emiliani [Mon, 12 Nov 2007 16:01:36 +0000 (13:01 -0300)]
Bug fix for the vpn --net=<VPN> fixed
Nicolas Emiliani [Mon, 12 Nov 2007 15:33:45 +0000 (12:33 -0300)]
Added Mode=switch to tinc.conf template.
This causes the created device to appear as link/ether
or3st3s [Mon, 12 Nov 2007 12:32:06 +0000 (12:32 +0000)]
Merge branch 'master' into suse
Nicolas Emiliani [Mon, 12 Nov 2007 13:43:20 +0000 (10:43 -0300)]
Merge branch 'master' into suse
Nicolas Emiliani [Mon, 12 Nov 2007 13:42:29 +0000 (10:42 -0300)]
Hack for DNS timer_handle added.
The hack consists in redifinig de timer_handle because
the generic one that was used to check if the process was running
returned a pid that did not belong with the process wanted (named),
that was due to teh fact that named is in a path used to execute
an option of the syslog deamon.
Nicolas Emiliani [Mon, 12 Nov 2007 13:38:53 +0000 (10:38 -0300)]
VpnHandler export added.
Nicolas Emiliani [Mon, 12 Nov 2007 13:36:33 +0000 (10:36 -0300)]
Make up.
Nicolas Emiliani [Mon, 12 Nov 2007 13:28:12 +0000 (10:28 -0300)]
Fixes, VPN handler added and qos handler commented till it's fixed.
or3st3s [Mon, 12 Nov 2007 11:01:36 +0000 (11:01 +0000)]
Vpn Handler added to config.py.
Leandro Lucarella [Sun, 11 Nov 2007 20:00:41 +0000 (17:00 -0300)]
Bugfix: InitdHandler.timer_handler() had undefined variables.
Nicolas Emiliani [Sat, 10 Nov 2007 19:56:14 +0000 (16:56 -0300)]
Merge baryon.com.ar:workspace/pymin
Conflicts:
config.py
Nicolas Emiliani [Sat, 10 Nov 2007 19:48:52 +0000 (16:48 -0300)]
VPN support added.
Federico Cuello [Tue, 6 Nov 2007 18:45:37 +0000 (15:45 -0300)]
qos implementation fixes
Nicolas Emiliani [Tue, 6 Nov 2007 18:15:42 +0000 (15:15 -0300)]
Se agregan try y catch al _write_config del iphandler
Federico Cuello [Tue, 6 Nov 2007 03:47:32 +0000 (00:47 -0300)]
qos implementation
Leandro Lucarella [Mon, 5 Nov 2007 14:31:10 +0000 (11:31 -0300)]
Bugfix: add noauth and change name for user in ppp template.
Leandro Lucarella [Mon, 5 Nov 2007 14:30:39 +0000 (11:30 -0300)]
Bugfix: remove wrong poff command call in ppp handler.
Leandro Lucarella [Mon, 5 Nov 2007 14:30:16 +0000 (11:30 -0300)]
Move Device and Address to services.util and add ppp peer IPs.
Leandro Lucarella [Mon, 29 Oct 2007 02:08:10 +0000 (23:08 -0300)]
Add a default handle_timer() method to InitdHandler that checks the daemon pid.
This is to provide a more accurate running command. It can be extended to
provide a "persist" option to restart the service when it's down.
Leandro Lucarella [Sat, 27 Oct 2007 20:52:07 +0000 (17:52 -0300)]
Merge jack2@192.168.7.8:src/pymin
Leandro Lucarella [Sat, 27 Oct 2007 20:50:29 +0000 (17:50 -0300)]
Add a timer handler to ppp to monitor ppp connections state.
Leandro Lucarella [Sat, 27 Oct 2007 20:44:53 +0000 (17:44 -0300)]
Excecute the timer at startup if enabled.
Leandro Lucarella [Sat, 27 Oct 2007 18:48:24 +0000 (15:48 -0300)]
Removed 'ip addr update' command since it has not much sense.
jack2 [Sat, 27 Oct 2007 17:45:19 +0000 (14:45 -0300)]
Merge branch 'master' of or3st3s@baryon.com.ar:workspace/pymin into suse
Conflicts:
config.py
Nicolas Emiliani [Thu, 25 Oct 2007 14:54:54 +0000 (11:54 -0300)]
Verificacion de interfaces usando handle_timer().
En util.py se corrige get_network_devices para que
levante los link/ppp.
En ip/__init__.py se agrega refresh_devices para que
a travez del handle_timer se puedan agregar los devices
que se registran a travez del commando ppp y tambien
se borren los devices caidos.
Leandro Lucarella [Thu, 25 Oct 2007 03:30:21 +0000 (00:30 -0300)]
Update TODO list.
Leandro Lucarella [Wed, 24 Oct 2007 20:41:28 +0000 (17:41 -0300)]
Add support for a simple timer to do periodic tasks.
Base support is on EventLoop, who handles the timer
life and calls handle_timer() when the timer is
expired. dispatcher.Handler has a simple default
handle_timer() implementation that just promote the
"handle_timer message" to all subhandlers, while
PyDaemon just start "spreading the voice" by calling
the root handler handle_timer() method.
root [Mon, 22 Oct 2007 20:30:53 +0000 (17:30 -0300)]
Merge branch 'master' into suse
Leandro Lucarella [Mon, 22 Oct 2007 16:15:19 +0000 (13:15 -0300)]
Rearrange service startup order.
Leandro Lucarella [Mon, 22 Oct 2007 16:11:43 +0000 (13:11 -0300)]
Merge commit 'nico-baryon/master'
Conflicts:
pymin/services/ppp/__init__.py
pymin/services/vrrp/__init__.py
Leandro Lucarella [Mon, 22 Oct 2007 05:46:53 +0000 (02:46 -0300)]
Add support for service running status and restoring at startup.
Now ServiceHandler stores a persistent status of the service, to know if
the service should be started at startup (or reloaded when reload command
is called). To do that it inherits from Restorable, so restarting and
committing is now not done at _restore() any more. InetdHandler now
inherits from ServiceHandler to take advantage of its features.
ServiceHandler now support callables _service_{start,stop,restart,reload}
attributes to ease the customization.
PppHandler is a special case where each connection has it own running
status. All start, stop, restart and reload takes the name argument as
optional. If a name is not provided, all connections are processed. On
restart, all connections are (re)started, on reload (and at startup), only the previous
running connectinos are restarted.
ConfigWriter's _write_config() now can return True to indicate that commit
command shouldn't reload the service.
VrrpHandler now uses python's kill to stop the service.
Leandro Lucarella [Mon, 22 Oct 2007 05:32:42 +0000 (02:32 -0300)]
Bugfix: _dict_* should be _cont_* and _persistent_attrs should be a list.
Leandro Lucarella [Mon, 22 Oct 2007 05:29:48 +0000 (02:29 -0300)]
Add support "operation tagging" to ParametersHandler.
Now if a ParametersHandler instance has an attribute _update, it will be
changes to True when the set command is called.
Leandro Lucarella [Mon, 22 Oct 2007 04:07:43 +0000 (01:07 -0300)]
Bugfix: _persistent_attrs should be a sequence.
Fede [Mon, 22 Oct 2007 01:47:27 +0000 (22:47 -0300)]
Cambios ppp.
Se modifican parametros de los templates.
Se ambian prints por calls.
Fede [Sun, 21 Oct 2007 21:46:34 +0000 (18:46 -0300)]
Se corrigen el nombre del pid file y se camban prints por calls.
Fede [Sun, 21 Oct 2007 21:44:16 +0000 (18:44 -0300)]
Se agrega el POLICY al script para que el NAMED no se queje.
Fede [Sun, 21 Oct 2007 21:46:34 +0000 (18:46 -0300)]
Se corrigen el nombre del pid file y se camban prints por calls.
Fede [Sun, 21 Oct 2007 21:44:16 +0000 (18:44 -0300)]
Se agrega el POLICY al script para que el NAMED no se queje.
Fede [Sun, 21 Oct 2007 21:42:14 +0000 (18:42 -0300)]
Mod de los parametros de inicializacion de vrrp.
Leandro Lucarella [Fri, 19 Oct 2007 19:23:06 +0000 (16:23 -0300)]
Remove implemented items from TODO.
Fede [Thu, 18 Oct 2007 00:41:50 +0000 (21:41 -0300)]
Don't run in DEBUG mode (but print call() calls).
Fede [Thu, 18 Oct 2007 00:41:03 +0000 (21:41 -0300)]
Merge branch 'master' into suse
Fede [Thu, 18 Oct 2007 00:40:28 +0000 (21:40 -0300)]
Make real calls (remove prints).
Fede [Thu, 18 Oct 2007 00:39:25 +0000 (21:39 -0300)]
Alias reload to restart in DhcpHandler (init.d script don't have reload).
Fede [Wed, 17 Oct 2007 23:18:19 +0000 (20:18 -0300)]
Merge branch 'master' into suse
Fede [Wed, 17 Oct 2007 23:07:04 +0000 (20:07 -0300)]
Inherit errors from HandlerError.
Fede [Wed, 17 Oct 2007 22:59:22 +0000 (19:59 -0300)]
Specific Suse configuration.
Fede [Wed, 17 Oct 2007 22:44:03 +0000 (19:44 -0300)]
Merge ../t/pymin/
Conflicts:
pymin/services/ip/__init__.py
Leandro Lucarella [Tue, 16 Oct 2007 03:28:36 +0000 (00:28 -0300)]
Remove unused error classes.
Leandro Lucarella [Tue, 16 Oct 2007 03:28:21 +0000 (00:28 -0300)]
Add ComposedSubHandler (and their List and Dict flavors) to services.util.
Add a class to handle List and Dict subhandlers contained in another
parent object. DnsHandler and IpHandler are updated to use them.
get_devices() function was "promoted" to services.util too, with a little
signature change.
Leandro Lucarella [Tue, 16 Oct 2007 03:25:17 +0000 (00:25 -0300)]
Bugfix: catch LookupErrors instead of IndexError in ContainerSubHandler.
Leandro Lucarella [Tue, 16 Oct 2007 03:22:59 +0000 (00:22 -0300)]
Add a default __cmp__() implementation to pymin.seqtool.Sequence.
Leandro Lucarella [Tue, 16 Oct 2007 00:02:34 +0000 (21:02 -0300)]
Add a clear() method to ContainerSubHandler to remove all the items.
Leandro Lucarella [Tue, 16 Oct 2007 00:02:06 +0000 (21:02 -0300)]
Use more consistent getter name in ContainerSubHandler.
Now the method to access to the container attribute is named _attr() (and
_vattr) instead of _cont() (and _vcont). The method accept now an optional
'attr' argument to act as a setter.
Leandro Lucarella [Mon, 15 Oct 2007 05:22:06 +0000 (02:22 -0300)]
Add NatHandler to handle NAT (port forwarding, snating and masquerading).
Leandro Lucarella [Mon, 15 Oct 2007 04:25:27 +0000 (01:25 -0300)]
Add RestartHandler and ReloadHandler to pymin.services.util.
RestartHandler adds a command restart() that calls stop() and then start().
ReloadHandler adds a command reload() that calls restart().
This are utility classes to automatically handler restart and reload
commands on services that don't support them directly.
or3st3s [Sat, 13 Oct 2007 17:04:31 +0000 (17:04 +0000)]
Se agrega soporto para balanceo de carga.
Se agrega en el comando hop que permite agregar
distintos gateways para hacer balanceo de carga.
Nicolas Emiliani [Fri, 12 Oct 2007 19:05:00 +0000 (16:05 -0300)]
Se agrega el template de chap-secrets para el pptp
Nicolas Emiliani [Fri, 12 Oct 2007 18:59:55 +0000 (15:59 -0300)]
Merge or3st3s@azazel:/home/luca/repos/pymin
Leandro Lucarella [Thu, 11 Oct 2007 21:06:57 +0000 (18:06 -0300)]
Add support to "operation tagging" to ListSubHandler and DictSubHandler.
"Operation tagging" means that if the contained objects has an _add,
_update or _delete attribute, it set them to true when the item is
added, updated or deleted respectively (in case that it's deleted, it's
not removed from the container, but it's not listed either, i.e. the
items are "logically" deleted, not really removed from the container).
Now ListSubHandler and DictSubHandler ihnerit from a new class
ContainerSubHandler which handles 95% of the code. Because of this, now
the "magic" attributes starts with _cont_ instead of _list_ or _dict_.
Existing handler were updated, but new ones should take this into
account.
Leandro Lucarella [Thu, 11 Oct 2007 20:10:30 +0000 (17:10 -0300)]
Add a new, backward compatible, way to specify specific config dirs.
Now _config_writer_cfg_dir could be a dictionary instead of a string.
The dictionary maps template filenames to directories where to generate
(render) the configure files.
See the DnsHandler for an example.
Nicolas Emiliani [Thu, 11 Oct 2007 19:27:32 +0000 (16:27 -0300)]
Se agrega soporte de pppoe, pptp al ppp.
Nicolas Emiliani [Thu, 11 Oct 2007 16:54:46 +0000 (13:54 -0300)]
Se agrega el manejo de ppp.
Leandro Lucarella [Wed, 10 Oct 2007 20:27:39 +0000 (17:27 -0300)]
Use ListSubHandler in firewall rules.
Leandro Lucarella [Wed, 10 Oct 2007 20:19:49 +0000 (17:19 -0300)]
Add a new helper class for services: ListSubHandler.
Leandro Lucarella [Wed, 10 Oct 2007 20:19:18 +0000 (17:19 -0300)]
Bugfix: skip SubHandlers parent when looking for a handler/command/help.
Leandro Lucarella [Wed, 10 Oct 2007 20:01:16 +0000 (17:01 -0300)]
Bugfix: use hasattr() right when looking for help.
Leandro Lucarella [Wed, 10 Oct 2007 19:36:11 +0000 (16:36 -0300)]
Bugfix: remove unused DictSubHandler attribute.
Leandro Lucarella [Wed, 10 Oct 2007 19:34:11 +0000 (16:34 -0300)]
Add default conversion from Sequence to str and unicode.
Leandro Lucarella [Wed, 10 Oct 2007 20:31:08 +0000 (17:31 -0300)]
Update services to use SubHandler and DictSubHandler.
Leandro Lucarella [Wed, 10 Oct 2007 19:00:43 +0000 (16:00 -0300)]
Raise a CommandNotFoundError if updating an object without update().
When a DictSubHandler try to update an object that doesn't have an
update() method, it raises a CommandNotFoundError to emulate that the
update command doesn't exist.
Nicolas Emiliani [Wed, 10 Oct 2007 18:31:07 +0000 (15:31 -0300)]
Merge or3st3s@azazel:/home/luca/repos/pymin
Leandro Lucarella [Wed, 10 Oct 2007 18:23:47 +0000 (15:23 -0300)]
Add new service helper classes: SubHandler and DictSubHandler.
SubHandler just takes a reference to his parent.
DictSubHandler manages a parent's dict attribute, providing add, update,
delete, get, list and show commands.
Error classes were added too: ItemError, ItemNotFoundError and
ItemAlreadyExistsError.
Leandro Lucarella [Wed, 10 Oct 2007 18:21:09 +0000 (15:21 -0300)]
Update TODO list.
Nicolas Emiliani [Wed, 10 Oct 2007 18:18:33 +0000 (15:18 -0300)]
Modificacion al vrrp para start y stop
Nicolas Emiliani [Wed, 10 Oct 2007 17:38:36 +0000 (14:38 -0300)]
Se agrega el servicio de VRRP.
Leandro Lucarella [Wed, 10 Oct 2007 15:06:15 +0000 (12:06 -0300)]
Improve WrongArgumentError class.
Leandro Lucarella [Wed, 10 Oct 2007 14:57:58 +0000 (11:57 -0300)]
Handle calling a command with an unexpected keyword argument errors.
Nicolas Emiliani [Wed, 10 Oct 2007 14:36:00 +0000 (11:36 -0300)]
Merge or3st3s@azazel:/home/luca/repos/pymin
Nicolas Emiliani [Wed, 10 Oct 2007 14:35:48 +0000 (11:35 -0300)]
Se agrega el archivo de usuarios de proxy