Method: Cisco::ConfigParser::Configuration.config_hash_to_str
- Defined in:
- lib/cisco_node_utils/configparser_lib.rb
.config_hash_to_str(cmd_hash, str = '') ⇒ Object
build_min_config_hash
84 85 86 87 88 89 90 91 |
# File 'lib/cisco_node_utils/configparser_lib.rb', line 84 def self.config_hash_to_str(cmd_hash, str='') return '' if cmd_hash.empty? cmd_hash.each do |k, v| str += k + "\n" str += config_hash_to_str(v.configuration, '') end str end |