[PATCH] host-up and host-down hooks
Guus Sliepen
guus at tinc-vpn.org
Mon Jun 12 23:46:48 CEST 2006
On Mon, Jun 12, 2006 at 04:15:29PM +0100, Menno Smits wrote:
> >Thanks! But, there are already subnet-up and subnet-down hooks, which
> >allow you to do the same (and more) than with host-up and host-down
> >hooks. Is there a situation where host-up/down is better than
> >subnet-up/down?
>
> We have been using the subnet-up and subnet-down hooks to run scripts
> which update a stored representation of the current VPN state. This
> stored representation is used to drive a real-time web display of the
> VPN showing which sites are up and what subnets are attached to each.
>
> This approach has one problem because we also want to show the hosts on
> the VPN display even if they have no subnets configured. If we rely on
> just the subnet-up script then the stored representation will see the
> host even though it is actually connected to the VPN. By using both
> subnet-up/down and host-up/down we get the desired information.
True enough, patch is added to Subversion! Thanks again,
--
Met vriendelijke groet / with kind regards,
Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://brouwer.uvt.nl/pipermail/tinc-devel/attachments/20060612/a3645f96/attachment.pgp
More information about the tinc-devel
mailing list