frr icon indicating copy to clipboard operation
frr copied to clipboard

VRRP deleting unsed interfaces from vtysh leads to unknown config for vrrp

Open EasyNetDev opened this issue 3 years ago • 0 comments


Describe the bug

If you have an interface where you have also VRRP configured and you delete the interface from system and then you use "no interface" in vtysh, VRRP seems to be not removed completely from VRRP.

  • [X] Did you check if this is a duplicate issue?
  • [X] Did you test it on the latest FRRouting/frr master branch?

To Reproduce

If I configure an interface that doesn't exist in system, create the VRRP and then delete the whole interface, we getting this issue:

R01# vtysh
R01# show vrrp summary

 Interface   VRID   Priority   IPv4   IPv6   State (v4)   State (v6)
 ----------------------------------------------------------------------
 po2.11      11     80         1      1      Backup       Backup

R01# configure terminal
R01(config)# interface po1.400
R01(config-if)# vrrp 20
R01(config-if)# do sh vrrp summary

 Interface   VRID   Priority   IPv4   IPv6   State (v4)   State (v6)
 ----------------------------------------------------------------------
 po1.400     20     100        0      0      Backup       Backup
 po2.11      11     80         1      1      Backup       Backup

R01(config-if)# exit
R01(config)# no interface po1.400
R01(config)# do sh vrrp summary

 Interface   VRID   Priority   IPv4   IPv6   State (v4)   State (v6)
 ----------------------------------------------------------------------
 D�ي       20     100        0      0      Backup       Backup
 po2.11      11     80         1      1      Backup       Backup

R01(config)#

Expected behavior

Before executing the whole interface removal, seems that VRRP de-configuration is no triggered for that non-existing system interface.

Screenshots

Versions

  • OS Version: Debian Bookworm
  • Kernel: 5.18.0-2-amd64
  • FRR Version: 8.4-dev-1656166742-1~1.gbp437e7e

Additional context

EasyNetDev avatar Jul 19 '22 15:07 EasyNetDev