internal netconf mods
This commit is contained in:
parent
2fcefda831
commit
eec5896797
22 changed files with 665 additions and 1205 deletions
|
|
@ -110,7 +110,7 @@ downcall(clicon_handle h,
|
|||
if ((cv = cvec_i(vars, 1)) != NULL)
|
||||
str = cv_string_get(cv);
|
||||
}
|
||||
if ((msg = clicon_msg_netconf_encode("<rpc><myrouting>%s</myrouting></rpc>", str)) == NULL)
|
||||
if ((msg = clicon_msg_encode("<rpc><myrouting>%s</myrouting></rpc>", str)) == NULL)
|
||||
goto done;
|
||||
if (clicon_rpc_msg(h, msg, &xret, NULL) < 0)
|
||||
goto done;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ commit("Commit the changes"), cli_commitv();
|
|||
quit("Quit Hello"), cli_quitv();
|
||||
delete("Delete a configuration item") all("Delete whole candidate configuration"), delete_allv("candidate");
|
||||
|
||||
startup("Store running as startup config"), db_copy("running","startup");
|
||||
startup("Store running as startup config"), db_copy("running", "startup");
|
||||
no("Negate or remove") debug("Debugging parts of the system"), cli_debug_cliv((int32)0);
|
||||
debug("Debugging parts of the system"), cli_debug_cliv((int32)1);{
|
||||
level("Set debug level: 1..n") <level:int32>("Set debug level (0..n)"), cli_debug_backendv();
|
||||
|
|
@ -29,23 +29,23 @@ show("Show a particular state of the system"){
|
|||
xml("Show comparison in xml"), compare_dbsv((int32)0);
|
||||
text("Show comparison in text"), compare_dbsv((int32)1);
|
||||
}
|
||||
configuration("Show configuration"), show_confv_as_text("candidate","/");{
|
||||
xml("Show configuration as XML"), show_confv_as_xml("candidate","/");
|
||||
netconf("Show configuration as netconf edit-config operation"), show_confv_as_netconf("candidate","/");
|
||||
configuration("Show configuration"), show_confv_as_text("candidate", "/");{
|
||||
xml("Show configuration as XML"), show_confv_as_xml("candidate", "/");
|
||||
netconf("Show configuration as netconf edit-config operation"), show_confv_as_netconf("candidate", "/");
|
||||
text("Show configuration as text"), show_confv_as_text("candidate","/");
|
||||
cli("Show configuration as cli commands"), show_confv_as_cli("candidate","/");
|
||||
json("Show configuration as cli commands"), show_confv_as_json("candidate","/");
|
||||
cli("Show configuration as cli commands"), show_confv_as_cli("candidate", "/");
|
||||
json("Show configuration as cli commands"), show_confv_as_json("candidate", "/");
|
||||
}
|
||||
}
|
||||
|
||||
save("Save candidate configuration to XML file") <filename:string>("Filename (local filename)"), save_config_filev("candidate","filename");
|
||||
load("Load configuration from XML file") <filename:string>("Filename (local filename)"),load_config_filev("filename","replace");{
|
||||
replace("Replace candidate with file contents"), load_config_filev("filename","replace");
|
||||
merge("Merge file with existent candidate"), load_config_filev("filename","merge");
|
||||
load("Load configuration from XML file") <filename:string>("Filename (local filename)"),load_config_filev("filename", "replace");{
|
||||
replace("Replace candidate with file contents"), load_config_filev("filename", "replace");
|
||||
merge("Merge file with existent candidate"), load_config_filev("filename", "merge");
|
||||
}
|
||||
example("This is a comment") <var:int32>("Just a random number"), mycallback("myarg");
|
||||
downcall("This is a downcall") <str:rest>, downcall();
|
||||
notify("Get notifications from backend"), cli_notifyv("ROUTING","1","txt");
|
||||
no("Negate") notify("Get notifications from backend"), cli_notifyv("ROUTING","0","xml");
|
||||
notify("Get notifications from backend"), cli_notifyv("ROUTING", "1", "txt");
|
||||
no("Negate") notify("Get notifications from backend"), cli_notifyv("ROUTING", "0", "xml");
|
||||
lock,cli_lock("candidate");
|
||||
unlock,cli_unlock("candidate");
|
||||
Loading…
Add table
Add a link
Reference in a new issue