diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2011-01-20 10:28:06 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2011-01-20 10:28:06 -0800 |
commit | 9cb5eb04bf0700bef1c061261ffbd6dc893eb7e8 (patch) | |
tree | 38a18b559793d00e6ffa43ab0ba8f91b96b8a61d /src/cnode/cnode-algorithm.hpp | |
parent | 2239b0ff1aa4c9075012021731ed9e2890446911 (diff) | |
download | vyatta-cfg-9cb5eb04bf0700bef1c061261ffbd6dc893eb7e8.tar.gz vyatta-cfg-9cb5eb04bf0700bef1c061261ffbd6dc893eb7e8.zip |
export config output algorithms through shell API
Diffstat (limited to 'src/cnode/cnode-algorithm.hpp')
-rw-r--r-- | src/cnode/cnode-algorithm.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cnode/cnode-algorithm.hpp b/src/cnode/cnode-algorithm.hpp index 4b1ec2f..c473d6a 100644 --- a/src/cnode/cnode-algorithm.hpp +++ b/src/cnode/cnode-algorithm.hpp @@ -38,6 +38,14 @@ void get_cmds_diff(const CfgNode& cfg1, const CfgNode& cfg2, void get_cmds(const CfgNode& cfg, vector<vector<string> >& set_list, vector<vector<string> >& com_list); +extern const string ACTIVE_CFG; +extern const string WORKING_CFG; + +void showConfig(const string& cfg1, const string& cfg2, + const vector<string>& path, bool show_def = false, + bool hide_secret = false, bool context_diff = false, + bool show_cmds = false); + } // namespace cnode #endif /* _CNODE_ALGORITHM_HPP_ */ |