Hi all. I currently use the unix socket to communicate with bird. the issue is that the data I get back is unstructured text. I have quite a bit of code parsing all that data into usable structs. Would it not be possible to add the ability to request structured data back? i.e. receive a response with the data encoded in json, protobuf, or even xml. Thanks Darren
Anno domini 2017 Darren O'Connor scripsit: Hi,
I currently use the unix socket to communicate with bird. the issue is that the data I get back is unstructured text. I have quite a bit of code parsing all that data into usable structs.
Would it not be possible to add the ability to request structured data back? i.e. receive a response with the data encoded in json, protobuf, or even xml.
+1 Best Max -- "really soon now": an unspecified period of time, likly to be greater than any reasonable definition of "soon".
Hi!
Would it not be possible to add the ability to request structured data back? i.e. receive a response with the data encoded in json, protobuf, or even xml.
+1
Together with David Cepelik, we are experimenting with structured output based on CBOR. You can expect some preliminary results at the end of July. Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://mj.ucw.cz/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Q: How many mathematicians does it take to screw in a lightbulb? A: 0.999999...
Il 2017-06-21 18:45 Martin Mares ha scritto:
Hi!
Would it not be possible to add the ability to request structured data back? i.e. receive a response with the data encoded in json, protobuf, or even xml.
+1
Together with David Cepelik, we are experimenting with structured output based on CBOR. You can expect some preliminary results at the end of July.
Have a nice fortnight
I'm working too with json structured output for bird. I'm implementing NetJSON[1] focusing on this specification[2] to represent the ospf network topology. Can I contribute to your work? Thanks, Gabriel [1]:http://netjson.org/ [2]: http://netjson.org/docs/what.html#networkgraph
On 2017-06-21, Darren O'Connor <mellow.drifter@gmail.com> sent:
I currently use the unix socket to communicate with bird. the issue is that the data I get back is unstructured text. I have quite a bit of code parsing all that data into usable structs.
Would it not be possible to add the ability to request structured data back? i.e. receive a response with the data encoded in json, protobuf, or even xml.
Something like libxo support would be pretty cool, https://github.com/Juniper/libxo That'd provide text, XML, JSON, and HTML output. -- Chip Marshall: - chip@2bithacker.net - http://2bithacker.net/ - @2bithacker
Hello, world!\n
Something like libxo support would be pretty cool, https://github.com/Juniper/libxo
That'd provide text, XML, JSON, and HTML output.
For many applications, text-based formats are too slow. This is the reason why I prefer to base the structured format on CBOR, which is much faster to generate and to parse. For basic applications which do not require high-volume output, online conversion to bare JSON should be possible. Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://mj.ucw.cz/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Q: How many alchemists does it take to change a light bulb? A: Into what?
participants (5)
-
Chip Marshall -
Darren O'Connor -
Gabriel -
Martin Mares -
Maximilian Wilhelm