From 2551a741af9ac4f7dfff8dc5cbe47173a99fa478 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 7 May 2024 14:52:14 -0500 Subject: xml: T6319: add util for ancestor owner/priority --- python/vyos/xml_ref/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/vyos/xml_ref/__init__.py') diff --git a/python/vyos/xml_ref/__init__.py b/python/vyos/xml_ref/__init__.py index bf434865d..2ba3da4e8 100644 --- a/python/vyos/xml_ref/__init__.py +++ b/python/vyos/xml_ref/__init__.py @@ -53,6 +53,12 @@ def is_valueless(path: list) -> bool: def is_leaf(path: list) -> bool: return load_reference().is_leaf(path) +def owner(path: list) -> str: + return load_reference().owner(path) + +def priority(path: list) -> str: + return load_reference().priority(path) + def cli_defined(path: list, node: str, non_local=False) -> bool: return load_reference().cli_defined(path, node, non_local=non_local) -- cgit v1.2.3