summaryrefslogtreecommitdiff
path: root/src/cli_bin.cpp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-02-28 18:25:01 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2011-02-28 18:25:01 -0800
commit24b3de8987f622b349cbe14dca99594f2c279902 (patch)
tree32d2b36144872943726b00ea63c274c0f7107933 /src/cli_bin.cpp
parent2d0d7bc61e12779a56272f82bc66044a5580e778 (diff)
downloadvyatta-cfg-24b3de8987f622b349cbe14dca99594f2c279902.tar.gz
vyatta-cfg-24b3de8987f622b349cbe14dca99594f2c279902.zip
add config template abstraction
Diffstat (limited to 'src/cli_bin.cpp')
-rw-r--r--src/cli_bin.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/cli_bin.cpp b/src/cli_bin.cpp
index 11c63a1..20da924 100644
--- a/src/cli_bin.cpp
+++ b/src/cli_bin.cpp
@@ -93,11 +93,7 @@ doSet(Cstore& cstore, const vector<string>& path_comps)
static void
doDelete(Cstore& cstore, const vector<string>& path_comps)
{
- vtw_def def;
- if (!cstore.validateDeletePath(path_comps, def)) {
- bye("invalid delete path");
- }
- if (!cstore.deleteCfgPath(path_comps, def)) {
+ if (!cstore.deleteCfgPath(path_comps)) {
bye("delete failed\n");
}
}
@@ -149,11 +145,7 @@ doCopy(Cstore& cstore, const vector<string>& path_comps)
static void
doComment(Cstore& cstore, const vector<string>& path_comps)
{
- vtw_def def;
- if (!cstore.validateCommentArgs(path_comps, def)) {
- bye("invalid comment args\n");
- }
- if (!cstore.commentCfgPath(path_comps, def)) {
+ if (!cstore.commentCfgPath(path_comps)) {
bye("comment cfg path failed\n");
}
}