Module: Junos::Ez::Config

Defined in:
lib/junos-ez/utils/config.rb

Overview


Config::Utils is a collection of methods used for loading configuration files/templates and software images

commit! - commit configuration
commit? - see if a candidate config is OK (commit-check)
diff? - shows the diff of the candidate config w/current | rolback
load! - load configuration onto device
lock! - take exclusive lock on config
unlock! - release exclusive lock on config
rollback! - perform a config rollback
get_config - returns requested config in "text" format-style

Defined Under Namespace

Classes: Provider

Class Method Summary collapse

Class Method Details

.Utils(ndev, varsym) ⇒ Object



19
20
21
22
# File 'lib/junos-ez/utils/config.rb', line 19

def self.Utils( ndev, varsym )            
  newbie = Junos::Ez::Config::Provider.new( ndev )      
  Junos::Ez::Provider.attach_instance_variable( ndev, varsym, newbie )    
end