Hello…
I have noticed strange behavior or policy prefix-list :
If I create prefix-list with comparator and then delete comparator prefix-list does not work.
First create prefix-list :
Set policy prefix-list xxxx rule 10 action permit
Set policy prefix-list xxxx rule 10 Le 32
Set policy prefix-list xxxx rule 10 Prefix 10.0.0.0/24
Then modify this prefix-list:
Delete policy prefix-list xxxx rule 10 Le 32
And now prefix-list looks like :
Set policy prefix-list xxxx rule 10 action permit
Set policy prefix-list xxxx rule 10 Prefix 10.0.0.0/24
But it does not works correctly.
I have checked this several times.
I delete entire rule 10 in prefix-list and create rule without comparator with new index - prefix-list works as expected.
Looks like a bug. When you delete the ‘le’ from existing prefix list it is not deleting it from frr:
vyos@vyos1# delete policy prefix-list test rule 10 le 32
[edit]
vyos@vyos1# show policy
prefix-list test {
rule 10 {
action permit
- le 32
prefix 10.1.0.0/16
}
}
[edit]
vyos@vyos1# commit
[edit]
vyos@vyos1# show policy
prefix-list test {
rule 10 {
action permit
prefix 10.1.0.0/16
}
}
[edit]
vyos@vyos1# save
Saving configuration to '/config/config.boot'...
Done
[edit]
vyos@vyos1# exit
exit
vyos@vyos1:~$ vtysh
Hello, this is FRRouting (version 7.5.1-20220709-00-g886a63a59).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
vyos1# show run
Building configuration...
Current configuration:
!
frr version 7.5.1-20220709-00-g886a63a59
frr defaults traditional
hostname vyos1
log syslog
log facility local7
service integrated-vtysh-config
!
ip route 0.0.0.0/0 10.0.2.2 eth0 tag 210 210
!
interface tun0
ip ospf network broadcast
!
ip prefix-list test seq 10 permit 10.1.0.0/16 le 32
!
line vty
!
end