Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
This refactoring improves the readability of the interface filtering logic by utilizing the `dict2items` function, making the code more maintainable and easier to understand.