class HrrRbNetconf::Server::Capability::Url_1_0

Constants

DEPENDENCIES
ID
IF_FEATURES
QUERIES

Public Instance Methods

define_capability() click to toggle source
# File lib/hrr_rb_netconf/server/capability/url_1_0.rb, line 15
def define_capability
  model 'edit-config',   ['edit-content', 'url'],            'leaf', 'type' => 'string', 'validation' => proc { |cap, node| cap.queries['scheme'].any?{|s| s == URI.parse(node.text).scheme} }
  model 'copy-config',   ['target', 'config-target', 'url'], 'leaf', 'type' => 'string'
  model 'copy-config',   ['source', 'config-source', 'url'], 'leaf', 'type' => 'string'
  model 'delete-config', ['target', 'config-target', 'url'], 'leaf', 'type' => 'string'
  model 'validate',      ['source', 'config-source', 'url'], 'leaf', 'type' => 'string'
end