From f5eef2d5a8a471fe6e4ec4f6acfa3dbf190eda5d Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Mon, 21 Jun 2021 18:04:46 +0300 Subject: lib: remove vrf-interface config when removing the VRF If we have the following configuration: ``` vrf red smth exit-vrf ! interface red vrf red smth ``` And we delete the VRF using "no vrf red" command, we end up with: ``` interface red smth ``` Interface config is preserved but moved to the default VRF. This is not an expected behavior. We should remove the interface config when the VRF is deleted. Signed-off-by: Igor Ryzhov --- pbrd/pbr_main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pbrd/pbr_main.c') diff --git a/pbrd/pbr_main.c b/pbrd/pbr_main.c index 1badaf95bd..7861559034 100644 --- a/pbrd/pbr_main.c +++ b/pbrd/pbr_main.c @@ -119,6 +119,7 @@ struct quagga_signal_t pbr_signals[] = { static const struct frr_yang_module_info *const pbrd_yang_modules[] = { &frr_filter_info, &frr_interface_info, + &frr_vrf_info, }; FRR_DAEMON_INFO(pbrd, PBR, .vty_port = PBR_VTY_PORT, -- cgit v1.2.3