Skip to content

Commit 1976c78

Browse files
committed
rename ActionType to ActionTypeMap to be more understandable
1 parent 2ae2bc7 commit 1976c78

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

lib/OpenFlow0x04.ml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5049,7 +5049,7 @@ module GroupFeatures = struct
50495049

50505050
end
50515051

5052-
module ActionType = struct
5052+
module ActionTypeMap = struct
50535053

50545054
type t = actionTypeMap
50555055

@@ -5128,10 +5128,10 @@ module GroupFeatures = struct
51285128
gf.max_groups_select
51295129
gf.max_groups_indirect
51305130
gf.max_groups_ff
5131-
(ActionType.to_string gf.actions_all)
5132-
(ActionType.to_string gf.actions_select)
5133-
(ActionType.to_string gf.actions_indirect)
5134-
(ActionType.to_string gf.actions_ff)
5131+
(ActionTypeMap.to_string gf.actions_all)
5132+
(ActionTypeMap.to_string gf.actions_select)
5133+
(ActionTypeMap.to_string gf.actions_indirect)
5134+
(ActionTypeMap.to_string gf.actions_ff)
51355135

51365136
let marshal (buf : Cstruct.t) (gf : groupFeatures) : int =
51375137
set_ofp_group_features_typ buf (GroupType.marshal gf.typ);
@@ -5140,10 +5140,10 @@ module GroupFeatures = struct
51405140
set_ofp_group_features_max_groups_select buf gf.max_groups_select;
51415141
set_ofp_group_features_max_groups_indirect buf gf.max_groups_indirect;
51425142
set_ofp_group_features_max_groups_fastfailover buf gf.max_groups_ff;
5143-
set_ofp_group_features_actions_all buf (ActionType.marshal gf.actions_all);
5144-
set_ofp_group_features_actions_select buf (ActionType.marshal gf.actions_select);
5145-
set_ofp_group_features_actions_indirect buf (ActionType.marshal gf.actions_indirect);
5146-
set_ofp_group_features_actions_fastfailover buf (ActionType.marshal gf.actions_ff);
5143+
set_ofp_group_features_actions_all buf (ActionTypeMap.marshal gf.actions_all);
5144+
set_ofp_group_features_actions_select buf (ActionTypeMap.marshal gf.actions_select);
5145+
set_ofp_group_features_actions_indirect buf (ActionTypeMap.marshal gf.actions_indirect);
5146+
set_ofp_group_features_actions_fastfailover buf (ActionTypeMap.marshal gf.actions_ff);
51475147
sizeof_ofp_group_features
51485148

51495149
let parse (bits : Cstruct.t) : groupFeatures =
@@ -5153,10 +5153,10 @@ module GroupFeatures = struct
51535153
; max_groups_select = get_ofp_group_features_max_groups_select bits
51545154
; max_groups_indirect = get_ofp_group_features_max_groups_indirect bits
51555155
; max_groups_ff = get_ofp_group_features_max_groups_fastfailover bits
5156-
; actions_all = ActionType.parse (get_ofp_group_features_actions_all bits)
5157-
; actions_select = ActionType.parse (get_ofp_group_features_actions_select bits)
5158-
; actions_indirect = ActionType.parse (get_ofp_group_features_actions_indirect bits)
5159-
; actions_ff = ActionType.parse (get_ofp_group_features_actions_fastfailover bits)
5156+
; actions_all = ActionTypeMap.parse (get_ofp_group_features_actions_all bits)
5157+
; actions_select = ActionTypeMap.parse (get_ofp_group_features_actions_select bits)
5158+
; actions_indirect = ActionTypeMap.parse (get_ofp_group_features_actions_indirect bits)
5159+
; actions_ff = ActionTypeMap.parse (get_ofp_group_features_actions_fastfailover bits)
51605160
}
51615161

51625162
end

0 commit comments

Comments
 (0)