mirror of
https://github.com/rtbrick/bngblaster.git
synced 2024-05-06 15:54:57 +00:00
add ospf-teardown command
This commit is contained in:
@@ -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},
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user