summaryrefslogtreecommitdiff
path: root/lib/command_py.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@nvidia.com>2023-05-26 13:43:50 -0700
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-06-13 13:55:51 +0000
commit9da5c285de38fe11ebf96f01df0d4fa8079e8ad6 (patch)
tree778ddc2db45ada72ab6123671e3b110100935776 /lib/command_py.c
parent7a6f6fca206f6bfd469bd3004e00f4cfa7c24b70 (diff)
ospfd: fix interface param type update
interface link update event needs to be handle properly in ospf interface cache. Example: When vrf (interface) is created its default type would be set to BROADCAST because ifp->status is not set to VRF. Subsequent link event sets ifp->status to vrf, ospf interface update need to compare current type to new default type which would be VRF (OSPF_IFTYPE_LOOPBACK). Since ospf type param was created in first add event, ifp vrf link event didn't update ospf type param which leads to treat vrf as non loopback interface. Ticket:#3459451 Testing Done: Running config suppose to bypass rendering default network broadcast for loopback/vrf types. Before fix: vrf vrf1 vni 4001 exit-vrf ! interface vrf1 ip ospf network broadcast exit After fix: (interface vrf1 is not displayed). vrf vrf1 vni 4001 exit-vrf Signed-off-by: Chirag Shah <chirag@nvidia.com> (cherry picked from commit 0d005b2d5c294d9d0a8db9d8beca83b97e0fd8ff)
Diffstat (limited to 'lib/command_py.c')
0 files changed, 0 insertions, 0 deletions