<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 3, 2012, at 2:21 AM, Markus Kittenberger wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div><br><div class="gmail_quote">On Thu, May 3, 2012 at 3:28 AM, Hans-Christoph Steiner <span dir="ltr"><<a href="mailto:hans@guardianproject.info" target="_blank">hans@guardianproject.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I have a complete Java wrapper for the txtinfo plugin, but I noticed that the httpinfo plugin provides the configuration while the txtinfo plugin does not.</blockquote>afair the txtinfo provides the config already!</div>
<div class="gmail_quote"><div><br></div><div>but its (for backward compatibility) not within the /all or default output</div><div>(/all == /neigh/link/route/hna/mid/topo)<br><div><br></div></div><div>e.g.: wget -t 1 -O - <a href="http://127.0.0.1:2006/all/gateway/config/interface/2hop">http://127.0.0.1:2006/all/gateway/config/interface/2hop</a></div>
<div>(which is infact currently really "all" the txtinfo can provide,..)</div><div><br></div><div>btw you can use 3 letter abbreviations of commands e.g. /int for /interfaces</div><div>and any combinations of commands. e.g. /link/interface/config</div>
<div>(but btw the output ordering is fixed)</div></div></div></div></blockquote><div><br></div><div>Ah, thanks, that's more stuff.  It would be good to have this info on the txtinfo howto page on the website. I'd do it if I had editing access.</div><div><br></div><br><blockquote type="cite"><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">why I shouldn't add /variables, /interfaces, and /plugins to txtinfo to get all of the info that httpinfo is providing?<br>
</blockquote><div>afair it already does exactly this,.. </div><div><br></div><div>if not add what is missing,..</div></div></div></div></blockquote><div><br></div><div>I guess I can derive /variables and /plugins from /config, but it'll be a little more work to parse.  It might not really be possible to get all the variables from /config since the variable is commented out if it matches the default, while httpinfo's Variables section just shows all of the variables with their values.  I'll try...</div><br><blockquote type="cite"><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">
<br>
Or maybe I should just scrape the httpinfo output...<br></blockquote><div>not agood idea (especially as current httpinfo will not make into next olsrd versions,..)</div><div><br></div><div>Markus</div></div></div></div></blockquote></div><br><div>Good to know.</div><div><br></div><div>.hc</div></body></html>