]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix SA warnings in bgp northbound
authorMark Stapp <mjs@voltanet.io>
Tue, 6 Oct 2020 12:18:59 +0000 (08:18 -0400)
committerMark Stapp <mjs@voltanet.io>
Tue, 6 Oct 2020 12:18:59 +0000 (08:18 -0400)
Fix a couple of new SA warnings in the new bgp northbound.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
bgpd/bgp_nb_config.c

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