This is what we currently do in the nodewatcher-agent module for reporting Babel topology information:
https://github.com/wlanslovenija/nodewatcher-agent/blob/master/modules/routing_babel.c

Looks good.

But why do you limit the JSON object to known key/value pairs? I would just do

  if(isnum(value[0]))
      json_object_add(... key, json_object_new_int(atol(value)))
  else
      json_object_add(... key, json_object_new_string(value))

This has the added advantage of needing no changes as I add new key/value pairs.

Yeah, link-local addresses of the current node are not reported by Babel

Do you want me to add that?

-- Juliusz

_______________________________________________
Babel-users mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/babel-users

Reply via email to