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 /mgmtd/mgmt_vty.c | |
| 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 'mgmtd/mgmt_vty.c')
| -rw-r--r-- | mgmtd/mgmt_vty.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/mgmtd/mgmt_vty.c b/mgmtd/mgmt_vty.c index 6a6f32353d..44c6c0097a 100644 --- a/mgmtd/mgmt_vty.c +++ b/mgmtd/mgmt_vty.c @@ -194,7 +194,7 @@ DEFPY(show_mgmt_get_config, show_mgmt_get_config_cmd,  		datastore = mgmt_ds_name2id(dsname);  	xpath_list[0] = path; -	vty_mgmt_send_get_config(vty, datastore, xpath_list, 1); +	vty_mgmt_send_get_req(vty, true, datastore, xpath_list, 1);  	return CMD_SUCCESS;  } @@ -214,7 +214,7 @@ DEFPY(show_mgmt_get_data, show_mgmt_get_data_cmd,  		datastore = mgmt_ds_name2id(dsname);  	xpath_list[0] = path; -	vty_mgmt_send_get_data(vty, datastore, xpath_list, 1); +	vty_mgmt_send_get_req(vty, false, datastore, xpath_list, 1);  	return CMD_SUCCESS;  }  | 
