Page MenuHomeVyOS Platform

Editing route-map Action Requires New Rule
Open, WishlistPublic

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)

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)
trae32566 updated the task description. (Show Details)Jun 25 2020, 3:42 AM