214: def config_status
215: config = getconfig
216: result = {}
217:
218: result[:autoboot] = config[:autoboot] ? config[:autoboot].intern : :absent
219: result[:pool] = config[:pool]
220: result[:shares] = config[:shares]
221: if dir = config["inherit-pkg-dir"]
222: result[:inherit] = dir.collect { |dirs| dirs[:dir] }
223: end
224: result[:iptype] = config["ip-type""ip-type"]
225: if net = config["net"]
226: result[:ip] = net.collect do |params|
227: if params[:defrouter]
228: "#{params[:physical]}:#{params[:address]}:#{params[:defrouter]}"
229: elsif params[:address]
230: "#{params[:physical]}:#{params[:address]}"
231: else
232: params[:physical]
233: end
234: end
235: end
236:
237: result
238: end