Closed edwintorok closed 6 years ago
Lets wait for a travis build, the long term goal should be to remove this hand rolled http parser, and use http-svr or cohttp.
This is used for xcp-networkd to do API calls to xapi in network_monitor_thread.ml. There must be a better way. For example use Xmlrpc_client
like this:
let xapirpc xml =
let open Xmlrpc_client in
XMLRPC_protocol.rpc ~srcstr:"xcp-networkd" ~dststr:"xapi" ~transport:(Unix "/var/xapi/xapi") ~http:(xmlrpc ~version:"1.0" "/") xml
I've squashed the commits
Please change the title of the PR
May I assume that someone has tested this?
There is a BVT in progress.
A good test for this would be to have a PIF with DHCP configuration, and checking that the PIF.IP
field gets set when the DHCP address comes in.
I've tested this by adding a new DHCP network in XenCenter and the correct IP appeared soon afterwards.
For compatibility with new rpclib 5.8.0, see failure in https://github.com/xapi-project/xs-opam/pull/291 - the Rpc_client module has been removed from ocaml-rpc