Skip to content

Commit cbb1110

Browse files
committed
Add explicit Prototyped API lifecycle transition
Signed-off-by: Rob Hoes <[email protected]>
1 parent a015bd0 commit cbb1110

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

ocaml/idl/datamodel.ml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2557,7 +2557,7 @@ let host_management_disable = call ~flags:[`Session]
25572557
()
25582558

25592559
let host_get_management_interface = call
2560-
~lifecycle:[]
2560+
~lifecycle:[Prototyped, rel_tampa, ""]
25612561
~name:"get_management_interface"
25622562
~doc:"Returns the management interface for the specified host"
25632563
~params:[Ref _host, "host", "Which host's management interface is required"]
@@ -4577,7 +4577,7 @@ let pif_reconfigure_ipv6 = call
45774577
String, "gateway", "the new gateway";
45784578
String, "DNS", "the new DNS settings";
45794579
]
4580-
~lifecycle:[]
4580+
~lifecycle:[Prototyped, rel_tampa, ""]
45814581
~allowed_roles:_R_POOL_OP
45824582
()
45834583

@@ -4591,7 +4591,7 @@ let pif_set_primary_address_type = call
45914591
~params:[Ref _pif, "self", "the PIF object to reconfigure";
45924592
pif_primary_address_type, "primary_address_type", "Whether to prefer IPv4 or IPv6 connections";
45934593
]
4594-
~lifecycle:[]
4594+
~lifecycle:[Prototyped, rel_tampa, ""]
45954595
~allowed_roles:_R_POOL_OP
45964596
()
45974597

@@ -4739,10 +4739,10 @@ let pif =
47394739
field ~in_product_since:rel_orlando ~default_value:(Some (VBool false)) ~ty:Bool "disallow_unplug" "Prevent this PIF from being unplugged; set this to notify the management tool-stack that the PIF has a special use and should not be unplugged under any circumstances (e.g. because you're running storage traffic over it)";
47404740
field ~in_oss_since:None ~ty:(Set(Ref _tunnel)) ~lifecycle:[Published, rel_cowley, "Indicates to which tunnel this PIF gives access"] ~qualifier:DynamicRO "tunnel_access_PIF_of" "Indicates to which tunnel this PIF gives access";
47414741
field ~in_oss_since:None ~ty:(Set(Ref _tunnel)) ~lifecycle:[Published, rel_cowley, "Indicates to which tunnel this PIF provides transport"] ~qualifier:DynamicRO "tunnel_transport_PIF_of" "Indicates to which tunnel this PIF provides transport";
4742-
field ~in_oss_since:None ~ty:pif_ipv6_configuration_mode ~lifecycle:[] ~qualifier:DynamicRO "ipv6_configuration_mode" "Sets if and how this interface gets an IPv6 address" ~default_value:(Some (VEnum "None"));
4743-
field ~in_oss_since:None ~ty:(Set(String)) ~lifecycle:[] ~qualifier:DynamicRO "IPv6" "IPv6 address" ~default_value:(Some (VSet []));
4744-
field ~in_oss_since:None ~ty:String ~lifecycle:[] ~qualifier:DynamicRO "ipv6_gateway" "IPv6 gateway" ~default_value:(Some (VString ""));
4745-
field ~in_oss_since:None ~ty:pif_primary_address_type ~lifecycle:[] ~qualifier:DynamicRO "primary_address_type" "Which protocol should define the primary address of this interface" ~default_value:(Some (VEnum "IPv4"));
4742+
field ~in_oss_since:None ~ty:pif_ipv6_configuration_mode ~lifecycle:[Prototyped, rel_tampa, ""] ~qualifier:DynamicRO "ipv6_configuration_mode" "Sets if and how this interface gets an IPv6 address" ~default_value:(Some (VEnum "None"));
4743+
field ~in_oss_since:None ~ty:(Set(String)) ~lifecycle:[Prototyped, rel_tampa, ""] ~qualifier:DynamicRO "IPv6" "IPv6 address" ~default_value:(Some (VSet []));
4744+
field ~in_oss_since:None ~ty:String ~lifecycle:[Prototyped, rel_tampa, ""] ~qualifier:DynamicRO "ipv6_gateway" "IPv6 gateway" ~default_value:(Some (VString ""));
4745+
field ~in_oss_since:None ~ty:pif_primary_address_type ~lifecycle:[Prototyped, rel_tampa, ""] ~qualifier:DynamicRO "primary_address_type" "Which protocol should define the primary address of this interface" ~default_value:(Some (VEnum "IPv4"));
47464746
field ~in_oss_since:None ~ty:Bool ~lifecycle:[Published, rel_vgpu_productisation, ""] ~qualifier:StaticRO "managed" "Indicates whether the interface \
47474747
is managed by xapi. If it is not, then xapi will not configure the interface, the commands PIF.plug/unplug/reconfigure_ip(v6) \
47484748
can not be used, nor can the interface be bonded or have VLANs based on top through xapi." ~default_value:(Some (VBool true));

ocaml/idl/datamodel_types.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ type release = {
115115
} with rpc
116116

117117
type lifecycle_change =
118+
| Prototyped
118119
| Published
119120
| Extended
120121
| Changed

0 commit comments

Comments
 (0)