Page MenuHomeVyOS Platform

[1.3.6->1.4.0-epa1 Migration] policy route fails due tcp flag case sensitivity
Closed, ResolvedPublicBUG

Description

In 1.3.6, the following is valid and works:-

set policy route tcp-mss-adjust-1436 rule 10 protocol 'tcp'
set policy route tcp-mss-adjust-1436 rule 10 set tcp-mss '1436'
set policy route tcp-mss-adjust-1436 rule 10 tcp flags 'SYN'
set interfaces ethernet eth0 vif 666 policy route 'tcp-mss-adjust-1436'

However in 1.4.0-epa1, the flags have to be represented in lower case, for example:-

set policy route tcp-mss-adjust-1436 rule 10 tcp flags syn

Doing a migration from 1.3.6 to 1.4.0-epa1 containing such config makes a bit of a mess:-

{F4222630}

I think the migration script needs to change the case of the flags in such config.

Details

Difficulty level
Unknown (require assessment)
Version
1.4.0-epa1, 1.5-rolling-202403120022
Why the issue appeared?
Design mistake
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

n.fort changed the task status from Open to Confirmed.Mar 15 2024, 2:33 PM
n.fort claimed this task.
n.fort changed Version from 1.4.0-epa1 to 1.4.0-epa1, 1.5-rolling-202403120022.
n.fort changed Why the issue appeared? from Will be filled on close to Design mistake.
n.fort changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
n.fort changed Issue type from Unspecified (please specify) to Bug (incorrect behavior).
n.fort moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
n.fort moved this task from Need Triage to Finished on the VyOS 1.5 Circinus board.