]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: prevent passive interface cmd crash
authorChirag Shah <chirag@cumulusnetworks.com>
Fri, 8 Dec 2017 17:33:53 +0000 (09:33 -0800)
committerChirag Shah <chirag@cumulusnetworks.com>
Sat, 9 Dec 2017 01:02:54 +0000 (17:02 -0800)
commite99734f1d0ad60a1048e9e344414115efb3904ab
tree4aafae89c99b2d54509a0d9e0493e37403839fd0
parenta457559e18100472826f2c9996c7f13c5caac3ed
ospfd: prevent passive interface cmd crash

Current OSPF VRF configuration are allow pre-provisining even if
VRF is not configured. In such case ospf->vrf_id would VRF_UNKNOWN,
when passive interface configuration done under such ospf instance,
it would lookup all vrf_device and try to create ifp with unknown
vrf_id.

for passive interface config command lookup ifp for vrf_id is within range.

Ticket:CM-19156
Testing Done:
Configure
Cumulus#: router ospf vrf vrf1
Cumulus(config-router)#: passive interface swp16
 interface swp16 not found.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
ospfd/ospf_vty.c