From bbbad31c95349eaa54f18f3987a475b5d225cb06 Mon Sep 17 00:00:00 2001 From: James Adams Date: Thu, 28 Nov 2024 15:36:17 +0000 Subject: [PATCH] ncm-metaconfig: devicemapper: Fix wrapping and indentation in pan --- .../metaconfig/devicemapper/pan/schema.pan | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/ncm-metaconfig/src/main/metaconfig/devicemapper/pan/schema.pan b/ncm-metaconfig/src/main/metaconfig/devicemapper/pan/schema.pan index 39412ce9a1..cb112b8721 100644 --- a/ncm-metaconfig/src/main/metaconfig/devicemapper/pan/schema.pan +++ b/ncm-metaconfig/src/main/metaconfig/devicemapper/pan/schema.pan @@ -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 }