diff options
author | John Estabrook <jestabro@vyos.io> | 2024-05-07 14:52:14 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2024-05-08 08:49:19 -0500 |
commit | 2551a741af9ac4f7dfff8dc5cbe47173a99fa478 (patch) | |
tree | 94d33a6d878ccb58bb1d44c1baecbe08ea68d7ef /python/vyos/xml_ref/__init__.py | |
parent | 996f9af72d41324319602252f3628bf04ac86dc4 (diff) | |
download | vyos-1x-2551a741af9ac4f7dfff8dc5cbe47173a99fa478.tar.gz vyos-1x-2551a741af9ac4f7dfff8dc5cbe47173a99fa478.zip |
xml: T6319: add util for ancestor owner/priority
Diffstat (limited to 'python/vyos/xml_ref/__init__.py')
-rw-r--r-- | python/vyos/xml_ref/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
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) |