@@ -53,6 +53,7 @@ type restrictions = {
5353 enable_wlb : bool ;
5454 enable_rbac : bool ;
5555 enable_dmc : bool ;
56+ enable_checkpoint : bool ;
5657 enable_vswitch_controller : bool ;
5758 restrict_connection : bool ;
5859 platform_filter : bool ;
@@ -76,6 +77,7 @@ let to_compact_string (x: restrictions) =
7677 " RBAC" , x.enable_rbac ;
7778 " DMC" , x.enable_dmc ;
7879 " DVSC" , x.enable_vswitch_controller;
80+ " chpt" , x.enable_checkpoint ;
7981 " Cnx" , not x.restrict_connection ;
8082 " Plat" , not x.platform_filter ;
8183 " nag" , x.regular_nag_dialog ;
@@ -99,6 +101,7 @@ let most_permissive = {
99101 enable_wlb = true ;
100102 enable_rbac = true ;
101103 enable_dmc = true ;
104+ enable_checkpoint = true ;
102105 enable_vswitch_controller = true ;
103106 restrict_connection = false ;
104107 platform_filter = false ;
@@ -121,6 +124,7 @@ let least_permissive (a: restrictions) (b: restrictions) = {
121124 enable_wlb = a.enable_wlb && b.enable_wlb;
122125 enable_rbac = a.enable_rbac && b.enable_rbac;
123126 enable_dmc = a.enable_dmc && b.enable_dmc;
127+ enable_checkpoint = a.enable_checkpoint && b.enable_checkpoint;
124128 enable_vswitch_controller = a.enable_vswitch_controller && b.enable_vswitch_controller;
125129 restrict_connection = a.restrict_connection || b.restrict_connection;
126130 platform_filter = a.platform_filter || b.platform_filter;
@@ -151,6 +155,7 @@ let _restrict_historical_performance = "restrict_historical_performance"
151155let _restrict_wlb = " restrict_wlb"
152156let _restrict_rbac = " restrict_rbac"
153157let _restrict_dmc = " restrict_dmc"
158+ let _restrict_checkpoint = " restrict_checkpoint"
154159let _restrict_vswitch_controller = " restrict_vswitch_controller"
155160let _regular_nag_dialog = " regular_nag_dialog"
156161
@@ -170,6 +175,7 @@ let to_assoc_list (x: restrictions) =
170175 (_restrict_wlb, string_of_bool (not x.enable_wlb));
171176 (_restrict_rbac, string_of_bool (not x.enable_rbac));
172177 (_restrict_dmc, string_of_bool (not x.enable_dmc ));
178+ (_restrict_checkpoint, string_of_bool (not x.enable_checkpoint ));
173179 (_restrict_vswitch_controller, string_of_bool (not x.enable_vswitch_controller ));
174180 (_regular_nag_dialog, string_of_bool x.regular_nag_dialog);
175181 ]
@@ -194,7 +200,8 @@ let of_assoc_list x =
194200 enable_wlb = Opt. default most_permissive.enable_wlb (Opt. map not (find bool_of_string _restrict_wlb));
195201 enable_rbac = Opt. default most_permissive.enable_rbac (Opt. map not (find bool_of_string _restrict_rbac));
196202 enable_dmc = Opt. default most_permissive.enable_dmc (Opt. map not (find bool_of_string _restrict_dmc));
197- enable_vswitch_controller = Opt. default most_permissive.enable_dmc (Opt. map not (find bool_of_string _restrict_vswitch_controller));
203+ enable_checkpoint = Opt. default most_permissive.enable_checkpoint (Opt. map not (find bool_of_string _restrict_dmc));
204+ enable_vswitch_controller = Opt. default most_permissive.enable_dmc (Opt. map not (find bool_of_string _restrict_vswitch_controller));
198205 regular_nag_dialog = Opt. default most_permissive.regular_nag_dialog (find bool_of_string _regular_nag_dialog);
199206 }
200207
@@ -216,7 +223,8 @@ let common_to_all_skus =
216223 enable_performance = false ;
217224 enable_wlb = false ;
218225 enable_rbac = false ;
219- enable_dmc = false ;
226+ enable_dmc = false ;
227+ enable_checkpoint = false ;
220228 enable_vswitch_controller = false ;
221229 regular_nag_dialog = true ;
222230 }
@@ -239,7 +247,8 @@ let rec restrictions_of_sku = function
239247 enable_wlb = true ;
240248 enable_rbac = true ;
241249 enable_dmc = true ;
242- enable_vswitch_controller = true ;
250+ enable_checkpoint = true ;
251+ enable_vswitch_controller = true ;
243252 regular_nag_dialog = false ;
244253 }
245254
@@ -273,5 +282,8 @@ let license_ok_for_rbac ~__context =
273282let context_ok_for_dmc ~__context =
274283 (get_pool() ).enable_dmc
275284
285+ let ok_for_checkpoint () =
286+ (get_pool() ).enable_checkpoint
287+
276288let license_ok_for_dmc ~__context =
277289 (get_pool() ).enable_vswitch_controller
0 commit comments