CLI pipe save function
This commit is contained in:
parent
f9faf1039a
commit
e55e05353f
6 changed files with 118 additions and 5 deletions
|
|
@ -111,6 +111,17 @@ cli> show configuration
|
|||
<value>42</value>
|
||||
</parameter>
|
||||
</table>
|
||||
cli> show configuration | show json
|
||||
{
|
||||
"clixon-example:table": {
|
||||
"parameter": [
|
||||
{
|
||||
"name": "a",
|
||||
"value": "42"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
cli> delete interfaces interface eth1table parameter a
|
||||
cli> commit
|
||||
```
|
||||
|
|
|
|||
|
|
@ -43,5 +43,5 @@ CLICON_MODE="|example_pipe"; # Must start with |
|
|||
json("JSON"), pipe_showas_fn("json");
|
||||
text("Text curly braces"), pipe_showas_fn("text");
|
||||
}
|
||||
# save("Save configuration to file") <filename:string>("Filename (local filename)"), save_config_file("candidate","filename", "xml"); # XXX
|
||||
save("Save configuration to file") <filename:string>("Filename (local filename)"), pipe_save_file("filename");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue