class HrrRbNetconf::Server::Capability::Validate_1_1

Constants

DEPENDENCIES
ID
IF_FEATURES

Public Instance Methods

define_capability() click to toggle source
# File lib/hrr_rb_netconf/server/capability/validate_1_1.rb, line 12
def define_capability
  oper_proc('validate'){ |session, datastore, input_e|
    datastore.run 'validate', input_e
    '<ok />'
  }

  model 'edit-config', ['test-option'],                        'leaf',     'type' => 'enumeration', 'enum' => ['test-then-set', 'set', 'test-only'], 'default' => 'test-then-set'
  model 'validate',    ['source'],                             'container'
  model 'validate',    ['source', 'config-source'],            'choice',   'mandatory' => true
  model 'validate',    ['source', 'config-source', 'running'], 'leaf',     'type' => 'empty'
  model 'validate',    ['source', 'config-source', 'config'],  'leaf',     'type' => 'anyxml'
end