Page MenuHomeVyOS Platform

Incomplete error message when duplicate firewall port-group used
Resolved (N/A)PublicBUG

Description

Incomplete error message when duplicate firewall port-group is configured:

vyos@E1# set firewall group port-group SOTI port '5494-5495'
[edit]
vyos@E1# commit
[edit]
vyos@E1# set firewall group port-group SOTI port '5493-5495'
[edit]
vyos@E1# commit

Failed to apply firewall

[[firewall]] failed
Commit failed

Clear error message is shown in 1.3.1-S1:

vyos@vyos# set firewall group port-group SOTI port '5494-5495'
[edit]
vyos@vyos# set firewall group port-group SOTI port '5493-5495'
[edit]
vyos@vyos# set firewall group port-group SOTI port '8444'
[edit]
vyos@vyos# commit
[ firewall group port-group SOTI ]
Port 5494 exist in more than one item

[ firewall group port-group SOTI ]
There are duplicates inside port-group SOTI

[[firewall group port-group SOTI]] failed
Commit failed

Details

Difficulty level
Unknown (require assessment)
Version
vyos-1.4-rolling-202207190217
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

I just leave it here. We must not return to bug T2189 with this fix.

dmbaturin added a subscriber: dmbaturin.

Works as expected now — prevented at the set stage.