diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-02 18:32:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-02 18:32:47 +0200 |
commit | 1d34bd8cc062573d5c89bc57c1010e131bac75f9 (patch) | |
tree | c5f67c11122a15a6a9136c04c4de49506c899bc3 /src/conf_mode/qos.py | |
parent | 7ee2f016878ed29120baa66f8e1d372f97402c96 (diff) | |
parent | e5af1f0905991103b12302892e6f0070bbb7b770 (diff) | |
download | vyos-1x-1d34bd8cc062573d5c89bc57c1010e131bac75f9.tar.gz vyos-1x-1d34bd8cc062573d5c89bc57c1010e131bac75f9.zip |
Merge pull request #3229 from c-po/multi-vrf
T6192: allow binding SSH to multiple VRF instances
Diffstat (limited to 'src/conf_mode/qos.py')
-rwxr-xr-x | src/conf_mode/qos.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/qos.py b/src/conf_mode/qos.py index 4a0b4d0c5..2b4fcc1bf 100755 --- a/src/conf_mode/qos.py +++ b/src/conf_mode/qos.py @@ -36,8 +36,9 @@ from vyos.qos import RateLimiter from vyos.qos import RoundRobin from vyos.qos import TrafficShaper from vyos.qos import TrafficShaperHFSC -from vyos.utils.process import run from vyos.utils.dict import dict_search_recursive +from vyos.utils.network import interface_exists +from vyos.utils.process import run from vyos import ConfigError from vyos import airbag airbag.enable() @@ -214,7 +215,7 @@ def apply(qos): return None for interface, interface_config in qos['interface'].items(): - if not os.path.exists(f'/sys/class/net/{interface}'): + if not interface_exists(interface): # When shaper is bound to a dialup (e.g. PPPoE) interface it is # possible that it is yet not availbale when to QoS code runs. # Skip the configuration and inform the user |