Page MenuHomeVyOS Platform

Editing route-map action requires adding a new rule
Closed, ResolvedPublic

Description

There's an error message which at least means you're aware of this issue, but I was wondering if perhaps behind the scenes we could do the equivalent of:

trae@cr01b-vyos# rename rule 10 to rule 20
[edit policy route-map OSPF-IN]
trae@cr01b-vyos# commit
[edit policy route-map OSPF-IN]
trae@cr01b-vyos# rename rule 20 to rule 10
[edit policy route-map OSPF-IN]
trae@cr01b-vyos# commit

Error:

[edit policy route-map OSPF-IN]
trae@cr01b-vyos# show
trae@cr01b-vyos# show          
 description "Inbound OSPF routes"
 rule 10 {                                         
>    action permit 
     match {                                                                                                                                                                                                      
         ip {                                             
             address {
                 prefix-list OSPF-IN-DENY                                 
             }                                                             
         }
     }
+    set {
+        distance 220
+    }
 }
 rule 1000 {
     action permit
     description "Default allow"
 }
[edit policy route-map OSPF-IN]
trae@cr01b-vyos# commit
[ policy route-map OSPF-IN rule 10 action permit ]
You can not change the action.
  To change the action you must first delete the rule 
  "delete route-map OSPF-IN rule 10" and commit it. 


[[policy route-map OSPF-IN]] failed
Commit failed
[edit policy route-map OSPF-IN]

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling-202006241940
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

trae32566 triaged this task as Wishlist priority.Jun 25 2020, 3:09 AM
trae32566 created this task.
trae32566 created this object in space S1 VyOS Public.
trae32566 updated the task description. (Show Details)

I can't reproduce it, VyOS 1.3-beta-202106081558

set policy prefix-list FOO rule 10 action 'permit'
set policy prefix-list FOO rule 10 prefix '0.0.0.0/0'
set policy route-map FOO rule 10 action 'permit'
set policy route-map FOO rule 10 match ip address prefix-list 'FOO'
set policy route-map FOO rule 10 set distance '220'
set policy route-map FOO rule 1000 action 'permit'

Rename

[email protected]# edit policy route-map FOO 
[edit policy route-map FOO]
[email protected]# 
[edit policy route-map FOO]
[email protected]# rename rule 10 to rule 20
[edit policy route-map FOO]
[email protected]# commit
[edit policy route-map FOO]
[email protected]# 
[edit policy route-map FOO]
[email protected]# rename rule 20 to rule 10
[edit policy route-map FOO]
[email protected]# commit
[edit policy route-map FOO]
[email protected]#

@trae32566 Can you re-check?

@Viacheslav This is confirmed fixed, I'm guessing it got fixed during the period between reporting it and now.

trae32566 claimed this task.
erkin renamed this task from Editing route-map Action Requires New Rule to Editing route-map action requires adding a new rule.Aug 29 2021, 2:07 PM
erkin set Issue type to Improvement (missing useful functionality).
erkin changed Issue type from Improvement (missing useful functionality) to Bug (incorrect behavior).
erkin removed a subscriber: Active contributors.