On Mon, Apr 16, 2012 at 02:32:09PM +0200, Mitar wrote:
Hi!
On Mon, Apr 16, 2012 at 12:58 PM, Marek Lindner lindner_marek@yahoo.de wrote:
If you already have a shell script uevent definitely is the way to go. It is far easier to script than netlink.
Yes, but are there uevent events for node reachable/unreachable?
Actually there is only one class of event: Gateway event. A Uevent is sent to the userspace each time the node ADD/DELETE/CHANGE its own batman-adv-GW. Actually, if the batman-adv-GW is co-located with the L3 GW, you can use this event to understand whether you have or not a default route in the network (assuming that I correctly understood your scenario).
Are those uevents already available? Do we know of any existing routing protocol being capable of using them?
Uevents support is in the batman-adv code, but as I told you before we only have GW events right now. But the code is easily extendible for other uevents :)
Then, in the userspace you can use UDEV to handle such uevents and do something you like (e.g. triggeringa bash script, relaunching another daemon, whatever..)
Cheers,