Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncm-metaconfig: devicemapper: Fix wrapping and indentation in pan #1791

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading