]> git.puffer.fish Git - mirror/frr.git/commitdiff
pbrd: add frr-vrf to the list of implemented yang modules 7071/head
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 10 Sep 2020 01:31:59 +0000 (22:31 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Thu, 10 Sep 2020 02:26:14 +0000 (23:26 -0300)
PR #6376 introduced a VRF leafref in the frr-interface YANG module.
That change exposed a bug in the northbound layer that is causing
pbrd to crash under certain circumstances. Even though pbrd wasn't
converted to the new northbound model yet, make it implement the
frr-vrf module in order to work around this problem. This is a
temporary fix until a better solution is available.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
pbrd/pbr_main.c

index 9a9edd79c6712266b4f6c0e26a8fd8ea36f07ea3..0711c66d4a373b66e10f6ae19319da74a6aabc6f 100644 (file)
@@ -117,6 +117,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,