diff options
author | Daniil Baturin <daniil@vyos.io> | 2025-05-27 15:10:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-27 15:10:29 +0100 |
commit | 3436daa55faf9c5d7beeede3f9b9ccaadd6c0e92 (patch) | |
tree | 6e7cdb5160d0bd942eb61b4eac0c5f81657f9da7 /src | |
parent | eb07e3131ae3ea6a58ac85340a5ce049ce3e6eb2 (diff) | |
parent | b80973d0e9f7aa266b079ebb04758c2c3dec4531 (diff) | |
download | vyos-1x-3436daa55faf9c5d7beeede3f9b9ccaadd6c0e92.tar.gz vyos-1x-3436daa55faf9c5d7beeede3f9b9ccaadd6c0e92.zip |
Merge pull request #4490 from l0crian1/fix-qos-tcp-flags
QoS: T7415: Fix tcp flags matching
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/qos.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/conf_mode/qos.py b/src/conf_mode/qos.py index 59e307a39..aed9407de 100755 --- a/src/conf_mode/qos.py +++ b/src/conf_mode/qos.py @@ -85,7 +85,13 @@ def _clean_conf_dict(conf): } """ if isinstance(conf, dict): - return {node: _clean_conf_dict(val) for node, val in conf.items() if val != {} and _clean_conf_dict(val) != {}} + preserve_empty_nodes = {'syn', 'ack'} + + return { + node: _clean_conf_dict(val) + for node, val in conf.items() + if (val != {} and _clean_conf_dict(val) != {}) or node in preserve_empty_nodes + } else: return conf |