Skip to content

Commit 36b165d

Browse files
committed
[GCU] Supressing YANG errors from libyang while sorting
1 parent fbd565d commit 36b165d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generic_config_updater/patch_sorter.py

+3
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,8 @@ def __init__(self, config_wrapper, patch_wrapper, sort_algorithm_factory=None):
13391339
SortAlgorithmFactory(self.operation_wrapper, config_wrapper, self.path_addressing)
13401340

13411341
def sort(self, patch, algorithm=Algorithm.DFS, preloaded_current_config=None):
1342+
import yang
1343+
yang.set_log_options(6)
13421344
current_config = preloaded_current_config if preloaded_current_config else self.config_wrapper.get_config_db_as_json()
13431345
target_config = self.patch_wrapper.simulate_patch(patch, current_config)
13441346

@@ -1352,4 +1354,5 @@ def sort(self, patch, algorithm=Algorithm.DFS, preloaded_current_config=None):
13521354

13531355
changes = [JsonChange(move.patch) for move in moves]
13541356

1357+
yang.set_log_options(7)
13551358
return changes

0 commit comments

Comments
 (0)