Skip to content

Commit

Permalink
bgp4-mibv2 -> BGP4-MIBv2
Browse files Browse the repository at this point in the history
  • Loading branch information
fdumontet6WIND committed Sep 4, 2023
1 parent dbdeeb0 commit 1d38546
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions bgpd/bgp_snmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ DEFPY (bgp_snmp_traps_rfc4273,

DEFPY (bgp_snmp_traps_bgp4_mibv2,
bgp_snmp_traps_bgp4_mibv2_cmd,
"bgp snmp traps bgp4-mibv2<enable$on|disable$off>",
"bgp snmp traps BGP4-MIBv2<enable$on|disable$off>",
BGP_STR
"Configure BGP SNMP\n"
"Configure SNMP traps for BGP\n"
"Configure use of bgp4-mibv2 SNMP traps for BGP\n"
"Specify using of bgp4-mibv2 traps\n"
"Specify unusing bgp4-mibv2 traps\n")
"Configure use of VGP4-MIBv2 SNMP traps for BGP\n"
"Specify using of BGP4-MIBv2 traps\n"
"Specify unusing BGP4-MIBv2 traps\n")
{
if (on) {
SET_FLAG(bgp_snmp_traps_flags,
Expand Down Expand Up @@ -98,7 +98,7 @@ int bgp_cli_snmp_traps_config_write(struct vty *vty)
CHECK_FLAG(bgp_snmp_traps_flags,
BGP_SNMP_TRAPS_RFC4273_ENABLED) ?
"enabled":"disabled");
vty_out(vty, "traps bgp4-mibv2 %s\n",
vty_out(vty, "traps BGP4-MIBv2 %s\n",
CHECK_FLAG(bgp_snmp_traps_flags,
BGP_SNMP_TRAPS_BGP4MIBV2_ENABLED) ?
"enabled":"disabled");
Expand All @@ -107,12 +107,10 @@ int bgp_cli_snmp_traps_config_write(struct vty *vty)

int bgpTrapEstablished(struct peer *peer)
{

if (!CHECK_FLAG(bgp_snmp_traps_flags,
BGP_SNMP_TRAPS_RFC4273_ENABLED))
bgp4TrapEstablished(peer);


if (!CHECK_FLAG(bgp_snmp_traps_flags,
BGP_SNMP_TRAPS_BGP4MIBV2_ENABLED))
bgpv2TrapEstablished(peer);
Expand All @@ -122,12 +120,10 @@ int bgpTrapEstablished(struct peer *peer)

int bgpTrapBackwardTransition(struct peer *peer)
{

if (!CHECK_FLAG(bgp_snmp_traps_flags,
BGP_SNMP_TRAPS_RFC4273_ENABLED))
bgp4TrapBackwardTransition(peer);


if (!CHECK_FLAG(bgp_snmp_traps_flags,
BGP_SNMP_TRAPS_BGP4MIBV2_ENABLED))
bgpv2TrapBackwardTransition(peer);
Expand Down

0 comments on commit 1d38546

Please sign in to comment.