]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix crash in vrf-vni mapping 6874/head
authorChirag Shah <chirag@cumulusnetworks.com>
Thu, 6 Aug 2020 18:18:42 +0000 (11:18 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Fri, 7 Aug 2020 22:23:27 +0000 (15:23 -0700)
commita446dc589bbf47ab36712f6204c0292ddc8c5377
treef72f1117eab7dfab1ce6f6f30197abeffc517d8e
parentcd211e2049e672d96dd1c549fcd259f68e0d57ea
zebra: fix crash in vrf-vni mapping

As part of PR 6758 vrf vni converted to transactional cli.
Handle a scenario where vrf is not created yet (inactive) and vni
is mapped to the inactive vrf.

Testing Done:

bharat(config-vrf)# do show vrf
vrf vrf1 id 11 table 1001
vrf vrf5 inactive (configured)

bharat(config)# vrf vrf5
bharat(config-vrf)# vni 5005

bharat(config-vrf)# do show vrf vni
VRF                                   VNI        VxLAN IF             L3-SVI               State Rmac
vrf5                                  5005       None                 None                 Down  None

bharat(config-vrf)# no vni 5005
bharat(config-vrf)# do show vrf vni
VRF                                   VNI        VxLAN IF             L3-SVI               State Rmac

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
zebra/zebra_nb_config.c
zebra/zebra_vty.c