Well, I'd like to query weave instead of querying Scope
since the the relevant info is there, without a performance hit
the query would be real similar to the output of weave report
moonfish
so just call `weave report`.
faddat
\that's what I was thinking-- just curious if there was a "cleaner" way to do it. If I was using golang, I'd use the os.whatever thingey to do that, yes?
moonfish
os/exec, yes.
you can also call the http api directly. For things like `weave report` that works well, since it is 100% implemented that way. For other weave commands the weave script itself does a lot more, so there isn't a suitable http API equivalent.
faddat
This should be interesting. I am going to build a visualizer using the output from weave report.
Thanks to weave, our network changes pretty frequently :)