Re: [B.A.T.M.A.N.] Migration to Batman

Antonio Quartulli
2012-04-16T12:40:06Z

[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]

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,

--
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]