Page MenuHomeVyOS Platform

Cannot delete as-path prepend from policy when it contains more than one AS
Closed, ResolvedPublicBUG

Description

Cannot delete as-path prepend from policy when it contains more than one AS

Configuration

vyos@vyos# set policy route-map BGP-OUT rule 20 action 'permit'
[edit]
vyos@vyos# set policy route-map BGP-OUT rule 20 set as-path prepend '65999 65999'
[edit]
vyos@vyos# commit

The error occurs after deleting an as-path prepend

vyos@vyos# delete policy route-map BGP-OUT rule 20 set
[edit]
vyos@vyos# commit

Failed to execute route-map BGP-OUT permit 20  no set as-path prepend
65999 65999 exit "route-map BGP-OUT permit 20 --  no set as-path prepend
65999 65999 -- exit" we failed to remove this command % Unknown command:
no set as-path prepend 65999 65999

[[policy]] failed
Commit failed
[edit]

If we use one AS in as-path prepend, everything works.

vyos@vyos# set policy route-map BGP-OUT rule 20 set as-path prepend '65999'
[edit]
vyos@vyos# set policy route-map BGP-OUT rule 20 action permit
[edit]
vyos@vyos# commit
[edit]
vyos@vyos# delete policy route-map BGP-OUT rule 20 set
[edit]
vyos@vyos# commit
[edit]
vyos@vyos#

Details

Difficulty level
Normal (likely a few hours)
Version
VyOS 1.4-stable-202404291222, VyOS 1.5-rolling-202404290019
Why the issue appeared?
Issues in third-party code
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

a.apostoliuk lowered the priority of this task from High to Normal.
a.apostoliuk created this task.
c-po changed the task status from Open to In progress.Thu, May 2, 7:41 PM
c-po changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).Fri, May 3, 5:10 AM
c-po changed Why the issue appeared? from Will be filled on close to Issues in third-party code.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
c-po moved this task from Need Triage to Finished on the VyOS 1.5 Circinus board.
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta (1.4.0-epa3) board.