From b4c60cda2c550c7e06770fcb5ce1d07bc3976069 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 12 Aug 2026 08:38:28 -0500 Subject: T9169: update for binding name change due to refactoring --- python/vyos/configtree.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'python') diff --git a/python/vyos/configtree.py b/python/vyos/configtree.py index a70aac095..743600a56 100644 --- a/python/vyos/configtree.py +++ b/python/vyos/configtree.py @@ -630,14 +630,14 @@ def mask_inclusive(left, right, libpath=LIBPATH): try: __lib = cdll.LoadLibrary(libpath) - __mask_tree = __lib.mask_tree - __mask_tree.argtypes = [c_void_p, c_void_p, c_bool] - __mask_tree.restype = c_void_p + __mask_inclusive = __lib.mask_inclusive + __mask_inclusive.argtypes = [c_void_p, c_void_p] + __mask_inclusive.restype = c_void_p __get_error = __lib.get_error __get_error.argtypes = [] __get_error.restype = c_char_p - res = __mask_tree(left.get_tree(), right.get_tree(), False) + res = __mask_inclusive(left.get_tree(), right.get_tree()) except Exception as e: raise ConfigTreeError(e) if not res: @@ -656,14 +656,14 @@ def mask_exclusive(left, right, libpath=LIBPATH): try: __lib = cdll.LoadLibrary(libpath) - __mask_tree = __lib.mask_tree - __mask_tree.argtypes = [c_void_p, c_void_p, c_bool] - __mask_tree.restype = c_void_p + __mask_exclusive = __lib.mask_exclusive + __mask_exclusive.argtypes = [c_void_p, c_void_p] + __mask_exclusive.restype = c_void_p __get_error = __lib.get_error __get_error.argtypes = [] __get_error.restype = c_char_p - res = __mask_tree(left.get_tree(), right.get_tree(), True) + res = __mask_exclusive(left.get_tree(), right.get_tree()) except Exception as e: raise ConfigTreeError(e) if not res: -- cgit v1.2.3