hrr_rb_netconf 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +28 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +32 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +6 -0
  7. data/LICENSE +201 -0
  8. data/README.md +220 -0
  9. data/Rakefile +6 -0
  10. data/demo/server.rb +54 -0
  11. data/demo/server_over_ssh.rb +97 -0
  12. data/demo/server_with_session-oriented-database.rb +134 -0
  13. data/demo/server_with_sessionless-database.rb +81 -0
  14. data/hrr_rb_netconf.gemspec +28 -0
  15. data/lib/hrr_rb_netconf.rb +10 -0
  16. data/lib/hrr_rb_netconf/logger.rb +56 -0
  17. data/lib/hrr_rb_netconf/server.rb +109 -0
  18. data/lib/hrr_rb_netconf/server/capabilities.rb +75 -0
  19. data/lib/hrr_rb_netconf/server/capability.rb +206 -0
  20. data/lib/hrr_rb_netconf/server/capability/base_1_0.rb +183 -0
  21. data/lib/hrr_rb_netconf/server/capability/base_1_1.rb +247 -0
  22. data/lib/hrr_rb_netconf/server/capability/candidate_1_0.rb +34 -0
  23. data/lib/hrr_rb_netconf/server/capability/confirmed_commit_1_0.rb +24 -0
  24. data/lib/hrr_rb_netconf/server/capability/confirmed_commit_1_1.rb +24 -0
  25. data/lib/hrr_rb_netconf/server/capability/rollback_on_error_1_0.rb +16 -0
  26. data/lib/hrr_rb_netconf/server/capability/startup_1_0.rb +22 -0
  27. data/lib/hrr_rb_netconf/server/capability/url_1_0.rb +23 -0
  28. data/lib/hrr_rb_netconf/server/capability/validate_1_0.rb +25 -0
  29. data/lib/hrr_rb_netconf/server/capability/validate_1_1.rb +25 -0
  30. data/lib/hrr_rb_netconf/server/capability/writable_running_1_0.rb +17 -0
  31. data/lib/hrr_rb_netconf/server/capability/xpath_1_0.rb +14 -0
  32. data/lib/hrr_rb_netconf/server/datastore.rb +30 -0
  33. data/lib/hrr_rb_netconf/server/datastore/oper_handler.rb +29 -0
  34. data/lib/hrr_rb_netconf/server/datastore/session.rb +52 -0
  35. data/lib/hrr_rb_netconf/server/error.rb +52 -0
  36. data/lib/hrr_rb_netconf/server/error/access_denied.rb +19 -0
  37. data/lib/hrr_rb_netconf/server/error/bad_attribute.rb +20 -0
  38. data/lib/hrr_rb_netconf/server/error/bad_element.rb +20 -0
  39. data/lib/hrr_rb_netconf/server/error/data_exists.rb +19 -0
  40. data/lib/hrr_rb_netconf/server/error/data_missing.rb +19 -0
  41. data/lib/hrr_rb_netconf/server/error/in_use.rb +19 -0
  42. data/lib/hrr_rb_netconf/server/error/invalid_value.rb +19 -0
  43. data/lib/hrr_rb_netconf/server/error/lock_denied.rb +19 -0
  44. data/lib/hrr_rb_netconf/server/error/malformed_message.rb +19 -0
  45. data/lib/hrr_rb_netconf/server/error/missing_attribute.rb +19 -0
  46. data/lib/hrr_rb_netconf/server/error/missing_element.rb +19 -0
  47. data/lib/hrr_rb_netconf/server/error/operation_failed.rb +19 -0
  48. data/lib/hrr_rb_netconf/server/error/operation_not_supported.rb +19 -0
  49. data/lib/hrr_rb_netconf/server/error/partial_operation.rb +19 -0
  50. data/lib/hrr_rb_netconf/server/error/resource_denied.rb +19 -0
  51. data/lib/hrr_rb_netconf/server/error/rollback_failed.rb +19 -0
  52. data/lib/hrr_rb_netconf/server/error/rpc_errorable.rb +138 -0
  53. data/lib/hrr_rb_netconf/server/error/too_big.rb +19 -0
  54. data/lib/hrr_rb_netconf/server/error/unknown_attribute.rb +19 -0
  55. data/lib/hrr_rb_netconf/server/error/unknown_element.rb +19 -0
  56. data/lib/hrr_rb_netconf/server/error/unknown_namespace.rb +19 -0
  57. data/lib/hrr_rb_netconf/server/errors.rb +28 -0
  58. data/lib/hrr_rb_netconf/server/filter.rb +48 -0
  59. data/lib/hrr_rb_netconf/server/filter/subtree.rb +135 -0
  60. data/lib/hrr_rb_netconf/server/filter/xpath.rb +59 -0
  61. data/lib/hrr_rb_netconf/server/model.rb +123 -0
  62. data/lib/hrr_rb_netconf/server/model/node.rb +19 -0
  63. data/lib/hrr_rb_netconf/server/operation.rb +92 -0
  64. data/lib/hrr_rb_netconf/server/session.rb +177 -0
  65. data/lib/hrr_rb_netconf/version.rb +6 -0
  66. metadata +149 -0
@@ -0,0 +1,6 @@
1
+ # coding: utf-8
2
+ # vim: et ts=2 sw=2
3
+
4
+ module HrrRbNetconf
5
+ VERSION = "0.1.0"
6
+ end
metadata ADDED
@@ -0,0 +1,149 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hrr_rb_netconf
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - hirura
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-06-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '10.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '10.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: simplecov
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.16'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.16'
55
+ description: Pure Ruby NETCONF server implementation
56
+ email:
57
+ - hirura@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".travis.yml"
65
+ - CODE_OF_CONDUCT.md
66
+ - Gemfile
67
+ - LICENSE
68
+ - README.md
69
+ - Rakefile
70
+ - demo/server.rb
71
+ - demo/server_over_ssh.rb
72
+ - demo/server_with_session-oriented-database.rb
73
+ - demo/server_with_sessionless-database.rb
74
+ - hrr_rb_netconf.gemspec
75
+ - lib/hrr_rb_netconf.rb
76
+ - lib/hrr_rb_netconf/logger.rb
77
+ - lib/hrr_rb_netconf/server.rb
78
+ - lib/hrr_rb_netconf/server/capabilities.rb
79
+ - lib/hrr_rb_netconf/server/capability.rb
80
+ - lib/hrr_rb_netconf/server/capability/base_1_0.rb
81
+ - lib/hrr_rb_netconf/server/capability/base_1_1.rb
82
+ - lib/hrr_rb_netconf/server/capability/candidate_1_0.rb
83
+ - lib/hrr_rb_netconf/server/capability/confirmed_commit_1_0.rb
84
+ - lib/hrr_rb_netconf/server/capability/confirmed_commit_1_1.rb
85
+ - lib/hrr_rb_netconf/server/capability/rollback_on_error_1_0.rb
86
+ - lib/hrr_rb_netconf/server/capability/startup_1_0.rb
87
+ - lib/hrr_rb_netconf/server/capability/url_1_0.rb
88
+ - lib/hrr_rb_netconf/server/capability/validate_1_0.rb
89
+ - lib/hrr_rb_netconf/server/capability/validate_1_1.rb
90
+ - lib/hrr_rb_netconf/server/capability/writable_running_1_0.rb
91
+ - lib/hrr_rb_netconf/server/capability/xpath_1_0.rb
92
+ - lib/hrr_rb_netconf/server/datastore.rb
93
+ - lib/hrr_rb_netconf/server/datastore/oper_handler.rb
94
+ - lib/hrr_rb_netconf/server/datastore/session.rb
95
+ - lib/hrr_rb_netconf/server/error.rb
96
+ - lib/hrr_rb_netconf/server/error/access_denied.rb
97
+ - lib/hrr_rb_netconf/server/error/bad_attribute.rb
98
+ - lib/hrr_rb_netconf/server/error/bad_element.rb
99
+ - lib/hrr_rb_netconf/server/error/data_exists.rb
100
+ - lib/hrr_rb_netconf/server/error/data_missing.rb
101
+ - lib/hrr_rb_netconf/server/error/in_use.rb
102
+ - lib/hrr_rb_netconf/server/error/invalid_value.rb
103
+ - lib/hrr_rb_netconf/server/error/lock_denied.rb
104
+ - lib/hrr_rb_netconf/server/error/malformed_message.rb
105
+ - lib/hrr_rb_netconf/server/error/missing_attribute.rb
106
+ - lib/hrr_rb_netconf/server/error/missing_element.rb
107
+ - lib/hrr_rb_netconf/server/error/operation_failed.rb
108
+ - lib/hrr_rb_netconf/server/error/operation_not_supported.rb
109
+ - lib/hrr_rb_netconf/server/error/partial_operation.rb
110
+ - lib/hrr_rb_netconf/server/error/resource_denied.rb
111
+ - lib/hrr_rb_netconf/server/error/rollback_failed.rb
112
+ - lib/hrr_rb_netconf/server/error/rpc_errorable.rb
113
+ - lib/hrr_rb_netconf/server/error/too_big.rb
114
+ - lib/hrr_rb_netconf/server/error/unknown_attribute.rb
115
+ - lib/hrr_rb_netconf/server/error/unknown_element.rb
116
+ - lib/hrr_rb_netconf/server/error/unknown_namespace.rb
117
+ - lib/hrr_rb_netconf/server/errors.rb
118
+ - lib/hrr_rb_netconf/server/filter.rb
119
+ - lib/hrr_rb_netconf/server/filter/subtree.rb
120
+ - lib/hrr_rb_netconf/server/filter/xpath.rb
121
+ - lib/hrr_rb_netconf/server/model.rb
122
+ - lib/hrr_rb_netconf/server/model/node.rb
123
+ - lib/hrr_rb_netconf/server/operation.rb
124
+ - lib/hrr_rb_netconf/server/session.rb
125
+ - lib/hrr_rb_netconf/version.rb
126
+ homepage: https://github.com/hirura/hrr_rb_netconf
127
+ licenses:
128
+ - Apache-2.0
129
+ metadata: {}
130
+ post_install_message:
131
+ rdoc_options: []
132
+ require_paths:
133
+ - lib
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: 2.0.0
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ requirements: []
145
+ rubygems_version: 3.0.3
146
+ signing_key:
147
+ specification_version: 4
148
+ summary: Pure Ruby NETCONF server implementation
149
+ test_files: []