diff options
| author | Christian Hopps <chopps@labn.net> | 2023-06-27 13:58:54 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-06-27 18:00:56 -0400 |
| commit | dbb1bc6f355ae53ce1f2402a1ac196e9f9e18a42 (patch) | |
| tree | 95440d9560362977bbd485ffdab1b30f7f8f5cc0 /lib/vty.h | |
| parent | 6267c2aaad2a503ae24885d3ffc9a7867fccb6c0 (diff) | |
mgmtd: consolidate getcfg and getdata msgs into "get"
eliminates tons of copy and paste code.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/vty.h')
| -rw-r--r-- | lib/vty.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -411,11 +411,9 @@ extern bool mgmt_vty_read_configs(void); extern int vty_mgmt_send_config_data(struct vty *vty, bool implicit_commit); extern int vty_mgmt_send_commit_config(struct vty *vty, bool validate_only, bool abort); -extern int vty_mgmt_send_get_config(struct vty *vty, - Mgmtd__DatastoreId datastore, - const char **xpath_list, int num_req); -extern int vty_mgmt_send_get_data(struct vty *vty, Mgmtd__DatastoreId datastore, - const char **xpath_list, int num_req); +extern int vty_mgmt_send_get_req(struct vty *vty, bool is_config, + Mgmtd__DatastoreId datastore, + const char **xpath_list, int num_req); extern int vty_mgmt_send_lockds_req(struct vty *vty, Mgmtd__DatastoreId ds_id, bool lock, bool scok); extern void vty_mgmt_resume_response(struct vty *vty, bool success); |
