diff options
| author | Christian Breunig <christian@breunig.cc> | 2024-07-30 08:07:29 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2024-07-30 08:07:29 +0200 |
| commit | 9b99a01653e3315b1abc9ef98824ca71bd283047 (patch) | |
| tree | 5228b3ef3c66fd6fa78678d71b5b4ef1d8c7dde3 /python/vyos/utils/network.py | |
| parent | adeac78ed6585b16102bd82581b54c75819714b2 (diff) | |
| download | veeos-1x-9b99a01653e3315b1abc9ef98824ca71bd283047.tar.gz veeos-1x-9b99a01653e3315b1abc9ef98824ca71bd283047.zip | |
pbr: T6430: refactor to use vyos.utils.network.get_vrf_tableid()
Commit 452068ce78 ("interfaces: T6592: moving an interface between VRF instances
failed") added a similar but more detailed implementation of get_vrf_table_id()
that was added in commit adeac78ed of this PR. Move to the common available
implementation.
Diffstat (limited to 'python/vyos/utils/network.py')
| -rw-r--r-- | python/vyos/utils/network.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/python/vyos/utils/network.py b/python/vyos/utils/network.py index d297a1ddb..8fce08de0 100644 --- a/python/vyos/utils/network.py +++ b/python/vyos/utils/network.py @@ -74,9 +74,6 @@ def get_vrf_members(vrf: str) -> list: pass return interfaces -def get_vrf_table_id(vrf: str): - return get_interface_config(vrf)['linkinfo']['info_data']['table'] - def get_interface_vrf(interface): """ Returns VRF of given interface """ from vyos.utils.dict import dict_search |
