On Feb 21, 2011, at 11:43 PM, Semba, Kurt wrote:

> thanks for your reply and your advice. I'm using the following SDK/library 
> within my Java application:
> http://www.community.citrix.com/cdn/xs/sdks

Yes, that would be XAPI, which I mentioned earlier.  (Or at least, that's what 
we call it.  The term is a bit overloaded in XenServer, and it appears that the 
API itself has a couple slight variations.)  I've only used the Python 
bindings, but I imagine the Java ones are quite similarly straight-forward.

> I would prefer using libraries which I can compile into my code instead of 
> using calls to external tools like ovs-vsctl. Where exactly do I find the 
> documentation on implementing my own ovsdb-server (I don't know where to find 
> "ovsdb/SPECS" - sorry, stupid me). How much effort would you think it is to 
> build something like this in Java?

I'd recommend using ovsdb-server, since it runs alongside the ovs-vswitchd 
process.  I was suggesting that if you wanted to centralize control that you 
may consider implementing a manager that speaks its protocol.  I don't know of 
any Java bindings to the database (either local or remote).  I would imagine it 
would be a moderate task to build, but it does appear that there are at least 
Java bindings for JSON-RPC, which would help.

That "ovsdb/SPECS", which defines the protocol, was relative to the root 
directory of the source distribution.  You can also view that file online here:

        
http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob;f=ovsdb/SPECS

Good luck!

--Justin



_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org

Reply via email to