summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_snmp.c
diff options
context:
space:
mode:
authorrgirada <rgirada@vmware.com>2021-10-08 09:15:48 +0200
committerrgirada <rgirada@vmware.com>2021-10-26 14:36:20 +0200
commit059fd3a48a8fca175125c4e1467c4471873b6659 (patch)
tree391993c50668d170b73578b394d766622e0b4dd3 /ospfd/ospf_snmp.c
parentospfd: Few modifications in "show ip ospf neighbor" o/p. (diff)
downloadfrr-059fd3a48a8fca175125c4e1467c4471873b6659.tar.xz
frr-059fd3a48a8fca175125c4e1467c4471873b6659.zip
ospfd: Adding apropriate ism state in ptop neighbors.
Description: In PointToPoint networks, There wont be DR and BDR. But by default, All neighbours ism state is shown as DR_OTHER. Changed the nbr state format to <nbrsate>/- (ex : FULL/-) to P2pnetworks. Signed-off-by: Rajesh Girada <rgirada@vmware.com>
Diffstat (limited to 'ospfd/ospf_snmp.c')
-rw-r--r--ospfd/ospf_snmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 432f95f9d..a1ea4e45d 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -2432,7 +2432,7 @@ static void ospfTrapNbrStateChange(struct ospf_neighbor *on)
oid index[sizeof(oid) * (IN_ADDR_SIZE + 1)];
char msgbuf[16];
- ospf_nbr_state_message(on, msgbuf, sizeof(msgbuf));
+ ospf_nbr_ism_state_message(on, msgbuf, sizeof(msgbuf));
if (IS_DEBUG_OSPF_EVENT)
zlog_info("%s: trap sent: %pI4 now %s", __func__,
&on->address.u.prefix4, msgbuf);