diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-12-02 14:35:25 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-12-02 14:35:25 -0800 |
commit | 352a9e94534933aca7403e91d1dc55c26bf633ce (patch) | |
tree | df413a5fbd1ab0e0b4776eff98149dd9cbc8006d /src/cnode/cnode-algorithm.hpp | |
parent | 58005829f825c3e6843d0c2c36e1e343194ec3dd (diff) | |
download | vyatta-cfg-352a9e94534933aca7403e91d1dc55c26bf633ce.tar.gz vyatta-cfg-352a9e94534933aca7403e91d1dc55c26bf633ce.zip |
implement load function in new config input/output infrastructure.
* add "commands diff" functionality to config input/output infrastructure.
* consolidate similar logic in "commands diff" and "show diff".
* add loadFile functionality to cstore using "commands diff".
* export loadFile through shell API.
Diffstat (limited to 'src/cnode/cnode-algorithm.hpp')
-rw-r--r-- | src/cnode/cnode-algorithm.hpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/cnode/cnode-algorithm.hpp b/src/cnode/cnode-algorithm.hpp index 86bce81..07faf07 100644 --- a/src/cnode/cnode-algorithm.hpp +++ b/src/cnode/cnode-algorithm.hpp @@ -21,8 +21,19 @@ namespace cnode { -void show_diff(const CfgNode& cfg1, const CfgNode& cfg2, bool show_def, - bool hide_secret); +void show_cfg_diff(const CfgNode& cfg1, const CfgNode& cfg2, bool show_def, + bool hide_secret); +void show_cfg(const CfgNode& cfg, bool show_def, bool hide_secret); + +void show_cmds_diff(const CfgNode& cfg1, const CfgNode& cfg2); +void show_cmds(const CfgNode& cfg); + +void get_cmds_diff(const CfgNode& cfg1, const CfgNode& cfg2, + vector<vector<string> >& del_list, + vector<vector<string> >& set_list, + vector<vector<string> >& com_list); +void get_cmds(const CfgNode& cfg, vector<vector<string> >& set_list, + vector<vector<string> >& com_list); } // namespace cnode |