Skip to content

Commit 8b52a3b

Browse files
committed
rrdd: Add /host_rrds and /vm_rrds for XC compatibility
Signed-off-by: Christian Pardillo Laursen <[email protected]>
1 parent d91da59 commit 8b52a3b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

ocaml/xcp-rrdd/bin/rrdd/xcp_rrdd.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,12 @@ let start (xmlrpc_path, http_fwd_path) process =
7777
Http_svr.Server.add_handler server Http.Post "/" (xmlrpc_handler process) ;
7878
Http_svr.Server.add_handler server Http.Get Rrdd_libs.Constants.get_vm_rrd_uri
7979
get_vm_rrd_handler ;
80+
Http_svr.Server.add_handler server Http.Get
81+
Rrdd_libs.Constants.get_vm_rrd_uri_compat get_vm_rrd_handler ;
8082
Http_svr.Server.add_handler server Http.Get
8183
Rrdd_libs.Constants.get_host_rrd_uri get_host_rrd_handler ;
84+
Http_svr.Server.add_handler server Http.Get
85+
Rrdd_libs.Constants.get_host_rrd_uri_compat get_host_rrd_handler ;
8286
Http_svr.Server.add_handler server Http.Get Rrdd_libs.Constants.get_sr_rrd_uri
8387
get_sr_rrd_handler ;
8488
Http_svr.Server.add_handler server Http.Get

ocaml/xcp-rrdd/lib/rrdd/constants.ml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,18 @@ let get_vm_rrd = "vm_rrd"
1919

2020
let get_vm_rrd_uri = "/" ^ get_vm_rrd
2121

22+
(* XenCenter was using this URI until build 8460 *)
23+
(* This is here for compatibility reasons only *)
24+
let get_vm_rrd_uri_compat = "/vm_rrds"
25+
2226
let get_host_rrd = "host_rrd"
2327

2428
let get_host_rrd_uri = "/" ^ get_host_rrd
2529

30+
(* XenCenter was using this URI until build 8460 *)
31+
(* This is here for compatibility reasons only *)
32+
let get_host_rrd_uri_compat = "/host_rrds"
33+
2634
let get_sr_rrd = "sr_rrd"
2735

2836
let get_sr_rrd_uri = "/" ^ get_sr_rrd

0 commit comments

Comments
 (0)