diff options
| author | Daniil Baturin <daniil@vyos.io> | 2024-05-08 17:40:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-08 17:40:36 +0200 |
| commit | 52efc39691737fd0be965cad955758ca8b8e40e9 (patch) | |
| tree | 94d33a6d878ccb58bb1d44c1baecbe08ea68d7ef /python/vyos/xml_ref/__init__.py | |
| parent | 996f9af72d41324319602252f3628bf04ac86dc4 (diff) | |
| parent | 2551a741af9ac4f7dfff8dc5cbe47173a99fa478 (diff) | |
| download | veeos-1x-52efc39691737fd0be965cad955758ca8b8e40e9.tar.gz veeos-1x-52efc39691737fd0be965cad955758ca8b8e40e9.zip | |
Merge pull request #3428 from jestabro/nearest-owner
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) |
