Class: FortiGate

Inherits:
Oxidized::Model show all
Defined in:
lib/oxidized/model/fortigate.rb

Constant Summary

Constants inherited from Oxidized::Model

Oxidized::Model::METADATA_DEFAULT

Constants included from Oxidized::Model::Macros

Oxidized::Model::Macros::VERBS

Instance Attribute Summary

Attributes inherited from Oxidized::Model

#input, #node

Attributes included from Oxidized::Model::DSLCommands

#procs

Instance Method Summary collapse

Methods inherited from Oxidized::Model

#cfg, #cmd, #comment, #expect, #expects, #get, inherited, #interpolate_string, #metadata, #output, #prompt, #screenscrape, #send, #significant_changes, #xmlcomment

Methods included from Oxidized::Model::DSLSetup

#cfg, #cfgs, #comment, #expect, #expects, #input_sequence, #inputs, #metadata, #prompt

Methods included from Oxidized::Model::DSLCommands

#cmd, #cmds, #post, #pre

Methods included from Oxidized::Config::Vars

#vars

Instance Method Details

#clean_config(cfg) ⇒ Object



126
127
128
129
130
131
# File 'lib/oxidized/model/fortigate.rb', line 126

def clean_config(cfg)
  cfg = cfg.reject_lines ['#conf_file_ver=']
  cfg.gsub!(/(set comments "Error \(No order found for account ID \d+\) on).*/,
            '\\1 <stripped>')
  cfg
end