def apply_configuration(config, attrs = { format: 'text' })
      rpc.lock_configuration
      rpc.load_configuration(config, attrs)
      rpc.commit_configuration
      rpc.unlock_configuration
    end
def apply_configuration(config, attrs = { format: 'text' })
      rpc.lock_configuration
      rpc.load_configuration(config, attrs)
      rpc.commit_configuration
      rpc.unlock_configuration
    end
Simplifies applying configuration to a Junos device.
 Uses Junos NETCONF extensions to apply the configuration.
 Returns to the previous committed config if any arror occurs

 @param config [String] Configuration to be applied the device
 @param attrs [Hash] Takes same attributes as
 {http://rubydoc.info/gems/netconf/Netconf/RPC/Junos:load_configuration Junos#load_configuration}