You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forward the call to master, because this call only does database
accesses, but it does many of them, so it's more efficient to do this on
the master.
I have skipped empty IPs, because the IPs can be temporarily empty if
they are configured via DHCP. And PIFs may not even have an IP, in which
case it is the empty string again.
In order to correctly format the IPv6 addresses in the output URIs and
conform to the RFC3986 specification of URI syntax, which says that IPv6
addresses should be enclosed in square brackets, I had to construct the
URIs by hand. I could not use the Uri library, because it would
incorrectly escape the colon in the IPv6 addresses using a URL escape
code.
Signed-off-by: Gabor Igloi <[email protected]>
Copy file name to clipboardExpand all lines: ocaml/idl/datamodel.ml
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6617,6 +6617,17 @@ let vdi_export_changed_blocks = call
6617
6617
~allowed_roles:_R_VM_OP
6618
6618
()
6619
6619
6620
+
let vdi_get_nbd_info = call
6621
+
~name:"get_nbd_info"
6622
+
~in_oss_since:None
6623
+
~in_product_since:rel_inverness
6624
+
~params:[Ref _vdi, "self", "The VDI to access via NBD."]
6625
+
~errs: [Api_errors.vdi_incompatible_type]
6626
+
~result:(SetString, "The list of URIs.")
6627
+
~doc:"Get a list of URIs specifying how to access this VDI via the NBD server of XenServer. A URI will be returned for each PIF of each host that is connected to the VDI's SR. An empty list is returned in case no network has a PIF on a host with access to the relevant SR. To access the given VDI, any of the returned URIs can be passed to the NBD server running at the IP address and port specified by that URI as the export name."
6628
+
~allowed_roles:_R_VM_ADMIN
6629
+
()
6630
+
6620
6631
(** A virtual disk *)
6621
6632
let vdi =
6622
6633
create_obj ~in_db:true~in_product_since:rel_rio ~in_oss_since:oss_since_303 ~internal_deprecated_since:None~persist:PersistEverything~gen_constructor_destructor:true~name:_vdi ~descr:"A virtual disk image"
0 commit comments