Skip to content

Commit

Permalink
Merge pull request #1791 from jrha/cleanup-metaconfig-devicemapper
Browse files Browse the repository at this point in the history
ncm-metaconfig: devicemapper: Fix wrapping and indentation in pan
  • Loading branch information
jrha authored Dec 16, 2024
2 parents eabf15c + bbbad31 commit a279c37
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions ncm-metaconfig/src/main/metaconfig/devicemapper/pan/schema.pan
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@ declaration template metaconfig/devicemapper/schema;
@{
devicemapper multipath
}
type multipath_defaults_path_selector = list with match(SELF[0], "^(round-robin|queue-length|service-time)$") &&
is_long(SELF[1]) && SELF[1] == 0;
type multipath_defaults_path_selector = list with {
match(SELF[0], "^(round-robin|queue-length|service-time)$") &&
is_long(SELF[1]) &&
SELF[1] == 0;
};

type multipath_defaults_features = list with length(SELF) == 2 && is_long(SELF[0]) && is_list(SELF[1]) &&
SELF[0] == length(SELF[1]) && match(SELF[1][0], '^(queue_if_no_path|no_partitions)$');
type multipath_defaults_features = list with {
length(SELF) == 2 &&
is_long(SELF[0]) &&
is_list(SELF[1]) &&
SELF[0] == length(SELF[1]) &&
match(SELF[1][0], '^(queue_if_no_path|no_partitions)$');
};

type multipath_types_shared = {
'path_grouping_policy' ? string with match(SELF,
'^(failover|multibus|group_by_serial|group_by_prio|group_by_node_name)$')
'^(failover|multibus|group_by_serial|group_by_prio|group_by_node_name)$',
)
@{ The default path selector algorithm }
'path_selector' ? multipath_defaults_path_selector
@{ how to get default path prio, default const }
Expand Down

0 comments on commit a279c37

Please sign in to comment.