summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorRuben Herold <ruben@puettmann.net>2026-08-04 13:36:47 +0200
committerRuben Herold <ruben@puettmann.net>2026-08-04 13:36:47 +0200
commit072404da629f3d50c9f22eb24366e799759b8830 (patch)
treede09ca35028cacb95e0b0f834ad217d2d895f4ba /src/migration-scripts
parent57115dba2fae263b8923cdc5f4a827f49fa680e4 (diff)
downloadvyos-1x-072404da629f3d50c9f22eb24366e799759b8830.tar.gz
vyos-1x-072404da629f3d50c9f22eb24366e799759b8830.zip
nat: T9162: extract duplicated interface-lookup into _get_interface()
_get_formatted_output_rules() and _get_formatted_output_statistics() contained an identical block searching rule['rule']['expr'] for the iifname match and stripping the '@I_' set-name prefix. Extract it into a shared _get_interface(rule) helper so future fixes only need to land in one place. Addresses CodeRabbit nitpick on PR #5375.
Diffstat (limited to 'src/migration-scripts')
0 files changed, 0 insertions, 0 deletions