Merge pull request #7246 from mjstapp/fix_bgp_nb_sa

bgpd: fix SA warnings in bgp northbound
This commit is contained in:
Donatas Abraitis 2020-10-07 09:46:15 +03:00 committed by GitHub
commit 90c815bc99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,9 +288,6 @@ int bgp_global_confederation_identifier_modify(struct nb_cb_modify_args *args)
break; break;
} }
as = yang_dnode_get_uint32(args->dnode, NULL);
return NB_OK; return NB_OK;
} }
@ -1381,7 +1378,6 @@ int bgp_global_global_config_timers_hold_time_modify(
switch (args->event) { switch (args->event) {
case NB_EV_VALIDATE: case NB_EV_VALIDATE:
keepalive = yang_dnode_get_uint16(args->dnode, "../keepalive");
holdtime = yang_dnode_get_uint16(args->dnode, NULL); holdtime = yang_dnode_get_uint16(args->dnode, NULL);
/* Holdtime value check. */ /* Holdtime value check. */
if (holdtime < 3 && holdtime != 0) { if (holdtime < 3 && holdtime != 0) {
@ -1423,7 +1419,6 @@ int bgp_global_global_config_timers_keepalive_modify(
switch (args->event) { switch (args->event) {
case NB_EV_VALIDATE: case NB_EV_VALIDATE:
keepalive = yang_dnode_get_uint16(args->dnode, NULL);
holdtime = yang_dnode_get_uint16(args->dnode, "../hold-time"); holdtime = yang_dnode_get_uint16(args->dnode, "../hold-time");
/* Holdtime value check. */ /* Holdtime value check. */
if (holdtime < 3 && holdtime != 0) { if (holdtime < 3 && holdtime != 0) {