diff --git a/code/bngblaster/src/bbl_ctrl.c b/code/bngblaster/src/bbl_ctrl.c index be4b77c7..464e46f1 100644 --- a/code/bngblaster/src/bbl_ctrl.c +++ b/code/bngblaster/src/bbl_ctrl.c @@ -231,6 +231,7 @@ struct action actions[] = { {"ospf-load-mrt", ospf_ctrl_load_mrt, false}, {"ospf-lsa-update", ospf_ctrl_lsa_update, false}, {"ospf-pdu-update", ospf_ctrl_pdu_update, false}, + {"ospf-teardown", ospf_ctrl_teardown, false}, {"bgp-sessions", bgp_ctrl_sessions, true}, {"bgp-disconnect", bgp_ctrl_disconnect, false}, {"bgp-teardown", bgp_ctrl_teardown, true}, diff --git a/code/bngblaster/src/ospf/ospf_ctrl.c b/code/bngblaster/src/ospf/ospf_ctrl.c index 27bace46..4d29cc26 100644 --- a/code/bngblaster/src/ospf/ospf_ctrl.c +++ b/code/bngblaster/src/ospf/ospf_ctrl.c @@ -353,4 +353,11 @@ ospf_ctrl_pdu_update(int fd, uint32_t session_id __attribute__((unused)), json_t return bbl_ctrl_status(fd, "error", 400, "missing OSPF PDU list"); } return bbl_ctrl_status(fd, "ok", 200, NULL); +} + +int +ospf_ctrl_teardown(int fd, uint32_t session_id __attribute__((unused)), json_t *arguments __attribute__((unused))) +{ + ospf_teardown(); + return bbl_ctrl_status(fd, "ok", 200, NULL); } \ No newline at end of file diff --git a/code/bngblaster/src/ospf/ospf_ctrl.h b/code/bngblaster/src/ospf/ospf_ctrl.h index 51536fb0..bdd5cb65 100644 --- a/code/bngblaster/src/ospf/ospf_ctrl.h +++ b/code/bngblaster/src/ospf/ospf_ctrl.h @@ -27,4 +27,7 @@ ospf_ctrl_lsa_update(int fd, uint32_t session_id __attribute__((unused)), json_t int ospf_ctrl_pdu_update(int fd, uint32_t session_id __attribute__((unused)), json_t *arguments); +int +ospf_ctrl_teardown(int fd, uint32_t session_id __attribute__((unused)), json_t *arguments __attribute__((unused))); + #endif \ No newline at end of file