Page MenuHomeVyOS Platform

vyos_firewall_global: Ansible module fails validation when a firewall zone has a VRF member
Open, HighPublic

Description

Starting with v6.1.0 of the vyos.vyos ansible collection, a task using the vyos_firewall_global module fails, if a firewall zone is configured on the system which contains a VRF as a member.

fatal: [vyos01]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (basic.py) module: config.zone.member. Supported parameters include: default_action, default_log, description, interfaces, intra_zone_filtering, local_zone, name, sources."}

The configuration in question which breaks the module validation:

set firewall zone EVPN member vrf vrf_evpn1

So every vyos_firewall_global invocation fails on a device that has a VRF-member zone. That includes state: merged runs whose config contains no zone key at all, since the facts are validated before any diffing. The module also has no way to manage VRF zone members.

Details

Version
VyOS 1.5.1-S1
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

dimitark triaged this task as High priority.
dimitark created this object in space S1 VyOS Public.

Thank you for reporting the issue
Let me review it and get back to you

@dimitark hi!
I am working on the bugfix in https://github.com/vyos/vyos.vyos/pull/531, which I submitted for review by my senior teammates

You can try and fetch it in your collection if you need the fix sooner than next official release of vyos.vyos collection
Thank you for reporting the issue.
We can keep this ticket open until everrything settles