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]