cisco_node_utils 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/.rubocop.yml +81 -1
  4. data/.travis.yml +9 -0
  5. data/CHANGELOG.md +72 -6
  6. data/CONTRIBUTING.md +32 -7
  7. data/README.md +70 -7
  8. data/Rakefile +17 -0
  9. data/bin/check_metric_limits.rb +109 -0
  10. data/bin/git/hooks/commit-msg/enforce_style +81 -0
  11. data/bin/git/hooks/hook_lib +108 -0
  12. data/bin/git/hooks/hooks-wrapper +38 -0
  13. data/bin/git/hooks/post-flow-hotfix-start/update-version +24 -0
  14. data/bin/git/hooks/post-flow-release-finish/update-version +29 -0
  15. data/bin/git/hooks/post-flow-release-start/update-version +19 -0
  16. data/bin/git/hooks/post-merge/update-hooks +6 -0
  17. data/bin/git/hooks/post-rewrite/update-hooks +6 -0
  18. data/bin/git/hooks/pre-commit/rubocop +20 -0
  19. data/bin/git/hooks/pre-commit/validate-diffs +31 -0
  20. data/bin/git/hooks/pre-push/check-changelog +24 -0
  21. data/bin/git/hooks/pre-push/rubocop +7 -0
  22. data/bin/git/update-hooks +65 -0
  23. data/cisco_node_utils.gemspec +9 -3
  24. data/docs/README-develop-best-practices.md +404 -0
  25. data/docs/README-develop-node-utils-APIs.md +215 -365
  26. data/docs/README-maintainers.md +33 -3
  27. data/docs/template-router.rb +89 -91
  28. data/docs/template-test_router.rb +52 -55
  29. data/lib/.rubocop.yml +18 -0
  30. data/lib/cisco_node_utils.rb +2 -19
  31. data/lib/cisco_node_utils/README_YAML.md +1 -9
  32. data/lib/cisco_node_utils/bgp.rb +664 -0
  33. data/lib/cisco_node_utils/bgp_af.rb +530 -0
  34. data/lib/cisco_node_utils/bgp_neighbor.rb +425 -0
  35. data/lib/cisco_node_utils/bgp_neighbor_af.rb +709 -0
  36. data/lib/cisco_node_utils/cisco_cmn_utils.rb +59 -25
  37. data/lib/cisco_node_utils/command_reference.rb +72 -74
  38. data/lib/cisco_node_utils/command_reference_common.yaml +174 -9
  39. data/lib/cisco_node_utils/command_reference_common_bgp.yaml +535 -0
  40. data/lib/cisco_node_utils/command_reference_n7k.yaml +4 -0
  41. data/lib/cisco_node_utils/command_reference_n9k.yaml +0 -9
  42. data/lib/cisco_node_utils/configparser_lib.rb +152 -147
  43. data/lib/cisco_node_utils/dns_domain.rb +79 -0
  44. data/lib/cisco_node_utils/domain_name.rb +71 -0
  45. data/lib/cisco_node_utils/interface.rb +167 -161
  46. data/lib/cisco_node_utils/interface_ospf.rb +78 -81
  47. data/lib/cisco_node_utils/name_server.rb +64 -0
  48. data/lib/cisco_node_utils/node.rb +154 -198
  49. data/lib/cisco_node_utils/node_util.rb +61 -0
  50. data/lib/cisco_node_utils/ntp_config.rb +65 -0
  51. data/lib/cisco_node_utils/ntp_server.rb +76 -0
  52. data/lib/cisco_node_utils/platform.rb +174 -165
  53. data/lib/cisco_node_utils/radius_global.rb +146 -0
  54. data/lib/cisco_node_utils/radius_server.rb +295 -0
  55. data/lib/cisco_node_utils/router_ospf.rb +59 -63
  56. data/lib/cisco_node_utils/router_ospf_vrf.rb +226 -210
  57. data/lib/cisco_node_utils/snmpcommunity.rb +52 -58
  58. data/lib/cisco_node_utils/snmpgroup.rb +22 -23
  59. data/lib/cisco_node_utils/snmpserver.rb +99 -103
  60. data/lib/cisco_node_utils/snmpuser.rb +294 -274
  61. data/lib/cisco_node_utils/syslog_server.rb +92 -0
  62. data/lib/cisco_node_utils/syslog_settings.rb +69 -0
  63. data/lib/cisco_node_utils/tacacs_server.rb +137 -133
  64. data/lib/cisco_node_utils/tacacs_server_host.rb +84 -87
  65. data/lib/cisco_node_utils/version.rb +2 -1
  66. data/lib/cisco_node_utils/vlan.rb +28 -31
  67. data/lib/cisco_node_utils/vrf.rb +80 -0
  68. data/lib/cisco_node_utils/vtp.rb +100 -97
  69. data/lib/cisco_node_utils/yum.rb +15 -17
  70. data/tests/.rubocop.yml +15 -0
  71. data/tests/basetest.rb +81 -36
  72. data/tests/ciscotest.rb +38 -78
  73. data/{lib/cisco_node_utils → tests}/platform_info.rb +12 -8
  74. data/{lib/cisco_node_utils → tests}/platform_info.yaml +1 -1
  75. data/tests/test_bgp_af.rb +920 -0
  76. data/tests/test_bgp_neighbor.rb +403 -0
  77. data/tests/test_bgp_neighbor_af.rb +589 -0
  78. data/tests/test_command_config.rb +65 -62
  79. data/tests/test_command_reference.rb +31 -45
  80. data/tests/test_dns_domain.rb +113 -0
  81. data/tests/test_domain_name.rb +86 -0
  82. data/tests/test_interface.rb +424 -548
  83. data/tests/test_interface_ospf.rb +248 -432
  84. data/tests/test_interface_svi.rb +56 -79
  85. data/tests/test_interface_switchport.rb +196 -272
  86. data/tests/test_name_server.rb +85 -0
  87. data/tests/test_node.rb +7 -6
  88. data/tests/test_node_ext.rb +133 -186
  89. data/tests/test_ntp_config.rb +49 -0
  90. data/tests/test_ntp_server.rb +74 -0
  91. data/tests/test_platform.rb +58 -37
  92. data/tests/test_radius_global.rb +78 -0
  93. data/tests/test_radius_server.rb +185 -0
  94. data/tests/test_router_bgp.rb +838 -0
  95. data/tests/test_router_ospf.rb +49 -80
  96. data/tests/test_router_ospf_vrf.rb +274 -392
  97. data/tests/test_snmpcommunity.rb +128 -172
  98. data/tests/test_snmpgroup.rb +12 -14
  99. data/tests/test_snmpserver.rb +160 -189
  100. data/tests/test_snmpuser.rb +568 -717
  101. data/tests/test_syslog_server.rb +88 -0
  102. data/tests/test_syslog_settings.rb +54 -0
  103. data/tests/test_tacacs_server.rb +113 -148
  104. data/tests/test_tacacs_server_host.rb +108 -161
  105. data/tests/test_vlan.rb +63 -79
  106. data/tests/test_vrf.rb +92 -0
  107. data/tests/test_vtp.rb +108 -126
  108. data/tests/test_yum.rb +47 -41
  109. metadata +92 -56
  110. data/.rubocop_todo.yml +0 -293
  111. data/docs/.rubocop.yml +0 -13
  112. data/docs/template-feature.rb +0 -45
  113. data/docs/template-test_feature.rb +0 -51
  114. data/tests/test_all_cisco.rb +0 -46
data/tests/test_yum.rb CHANGED
@@ -12,57 +12,63 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- require File.expand_path("../ciscotest", __FILE__)
16
- require File.expand_path("../../lib/cisco_node_utils/yum", __FILE__)
15
+ require_relative 'ciscotest'
16
+ require_relative '../lib/cisco_node_utils/yum'
17
17
 
18
+ # TestYum - Minitest for Yum node utility class
18
19
  class TestYum < CiscoTestCase
20
+ # rubocop:disable Style/ClassVars
19
21
  @@skip = false
20
22
  @@run_setup = true
21
23
  @@pkg = 'n9000_sample'
22
24
  @@pkg_ver = '1.0.0-7.0.3'
23
25
  @@pkg_filename = 'n9000_sample-1.0.0-7.0.3.x86_64.rpm'
26
+ @@incompatible_rpm_msg =
27
+ ': The sample rpm is compatible with NX-OS release version 7.0(3)I2(1). ' \
28
+ 'This test may fail with other versions.'
29
+ # rubocop:enable Style/ClassVars
24
30
 
25
31
  def setup
26
32
  super
27
33
  # only run check once (can't use initialize because @device isn't ready)
28
- if @@run_setup
29
- s = @device.cmd("show file bootflash:#{@@pkg_filename} cksum")
30
- if s[/No such file/]
31
- @@skip = true
32
- else
33
- # add pkg to the repo
34
- # normally this could be accomplished by first installing via full path
35
- # but that would make these tests order dependent
36
- unless @device.cmd("show install package | include #{@@pkg}")[/@patching/]
37
- @device.cmd("install add bootflash:#{@@pkg_filename}")
38
- # Wait for install to complete
39
- sleep 30
40
- end
34
+ return unless @@run_setup
35
+
36
+ s = @device.cmd("show file bootflash:#{@@pkg_filename} cksum")
37
+ if s[/No such file/]
38
+ @@skip = true # rubocop:disable Style/ClassVars
39
+ else
40
+ # add pkg to the repo
41
+ # normally this could be accomplished by first installing via full path
42
+ # but that would make these tests order dependent
43
+ unless @device.cmd("show install package | include #{@@pkg}")[/@patching/]
44
+ @device.cmd("install add bootflash:#{@@pkg_filename}")
45
+ # Wait for install to complete
46
+ sleep 30
41
47
  end
42
- @@run_setup = false
43
48
  end
49
+ @@run_setup = false # rubocop:disable Style/ClassVars
44
50
  end
45
51
 
46
52
  def skip?
47
- skip "file bootflash:#{@@pkg_filename} is required. " +
48
- "this file can be found in the cisco_node_utils/tests directory" if @@skip
53
+ skip "file bootflash:#{@@pkg_filename} is required. " \
54
+ 'this file can be found in the cisco_node_utils/tests directory' if @@skip
49
55
  end
50
56
 
51
57
  def test_install
52
- skip?
53
- if @device.cmd("show install package | include #{@@pkg}")[/@patching/]
54
- @device.cmd("install deactivate #{@@pkg}")
55
- node.cache_flush
56
- sleep 20
57
- end
58
-
59
- # Specify "management" vrf for install
60
- Yum.install(@@pkg, "management")
58
+ skip?
59
+ if @device.cmd("show install package | include #{@@pkg}")[/@patching/]
60
+ @device.cmd("install deactivate #{@@pkg}")
61
+ node.cache_flush
61
62
  sleep 20
62
- s = @device.cmd("show install package | include #{@@pkg}")[/@patching/]
63
- assert(s, "failed to find installed package #{@@pkg}")
64
- rescue RuntimeError => e
65
- assert(false, e.message)
63
+ end
64
+
65
+ # Specify "management" vrf for install
66
+ Yum.install(@@pkg, 'management')
67
+ sleep 20
68
+ s = @device.cmd("show install package | include #{@@pkg}")[/@patching/]
69
+ assert(s, "failed to find installed package #{@@pkg}")
70
+ rescue RuntimeError => e
71
+ assert(false, e.message + @@incompatible_rpm_msg)
66
72
  end
67
73
 
68
74
  def test_remove
@@ -74,22 +80,22 @@ class TestYum < CiscoTestCase
74
80
  end
75
81
  Yum.remove(@@pkg)
76
82
  sleep 20
77
- s = @device.cmd("show install package | include #{@@pkg}")[/@patching/]
78
- assert_nil(s)
83
+ refute_show_match(command: "show install package | include #{@@pkg}",
84
+ pattern: /@patching/)
79
85
  end
80
86
 
81
87
  def test_ambiguous_package_error
82
88
  skip?
83
- assert_raises(RuntimeError) { Yum.query("busybox") }
89
+ assert_raises(RuntimeError) { Yum.query('busybox') }
84
90
  end
85
91
 
86
92
  def test_package_does_not_exist_error
87
- assert_raises(Cisco::CliError) {
88
- Yum.install("bootflash:this_is_not_real.rpm", "management")
89
- }
90
- assert_raises(RuntimeError) {
91
- Yum.install("also_not_real", "management")
92
- }
93
+ assert_raises(Cisco::CliError) do
94
+ Yum.install('bootflash:this_is_not_real.rpm', 'management')
95
+ end
96
+ assert_raises(RuntimeError) do
97
+ Yum.install('also_not_real', 'management')
98
+ end
93
99
  end
94
100
 
95
101
  def test_query
@@ -100,7 +106,7 @@ class TestYum < CiscoTestCase
100
106
  sleep 20
101
107
  end
102
108
  ver = Yum.query(@@pkg)
103
- assert_equal(ver, @@pkg_ver)
109
+ assert_equal(ver, @@pkg_ver, @@incompatible_rpm_msg)
104
110
  @device.cmd("install deactivate #{@@pkg}")
105
111
  node.cache_flush
106
112
  sleep 20
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cisco_node_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Alex Hunsberger
@@ -13,109 +12,104 @@ authors:
13
12
  autorequire:
14
13
  bindir: bin
15
14
  cert_chain: []
16
- date: 2015-09-18 00:00:00.000000000 Z
15
+ date: 2015-11-09 00:00:00.000000000 Z
17
16
  dependencies:
18
17
  - !ruby/object:Gem::Dependency
19
18
  name: minitest
20
19
  requirement: !ruby/object:Gem::Requirement
21
- none: false
22
20
  requirements:
23
- - - ! '>='
21
+ - - "~>"
24
22
  - !ruby/object:Gem::Version
25
- version: 2.5.1
26
- - - <
27
- - !ruby/object:Gem::Version
28
- version: 5.0.0
23
+ version: '5.0'
29
24
  type: :development
30
25
  prerelease: false
31
26
  version_requirements: !ruby/object:Gem::Requirement
32
- none: false
33
27
  requirements:
34
- - - ! '>='
35
- - !ruby/object:Gem::Version
36
- version: 2.5.1
37
- - - <
28
+ - - "~>"
38
29
  - !ruby/object:Gem::Version
39
- version: 5.0.0
30
+ version: '5.0'
40
31
  - !ruby/object:Gem::Dependency
41
32
  name: bundler
42
33
  requirement: !ruby/object:Gem::Requirement
43
- none: false
44
34
  requirements:
45
- - - ~>
35
+ - - "~>"
46
36
  - !ruby/object:Gem::Version
47
37
  version: '1.7'
48
38
  type: :development
49
39
  prerelease: false
50
40
  version_requirements: !ruby/object:Gem::Requirement
51
- none: false
52
41
  requirements:
53
- - - ~>
42
+ - - "~>"
54
43
  - !ruby/object:Gem::Version
55
44
  version: '1.7'
56
45
  - !ruby/object:Gem::Dependency
57
46
  name: rake
58
47
  requirement: !ruby/object:Gem::Requirement
59
- none: false
60
48
  requirements:
61
- - - ~>
49
+ - - "~>"
62
50
  - !ruby/object:Gem::Version
63
51
  version: '10.0'
64
52
  type: :development
65
53
  prerelease: false
66
54
  version_requirements: !ruby/object:Gem::Requirement
67
- none: false
68
55
  requirements:
69
- - - ~>
56
+ - - "~>"
70
57
  - !ruby/object:Gem::Version
71
58
  version: '10.0'
72
59
  - !ruby/object:Gem::Dependency
73
60
  name: rubocop
74
61
  requirement: !ruby/object:Gem::Requirement
75
- none: false
76
62
  requirements:
77
- - - ! '>='
63
+ - - '='
64
+ - !ruby/object:Gem::Version
65
+ version: 0.34.2
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - '='
71
+ - !ruby/object:Gem::Version
72
+ version: 0.34.2
73
+ - !ruby/object:Gem::Dependency
74
+ name: simplecov
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: '0.32'
79
+ version: '0.9'
80
80
  type: :development
81
81
  prerelease: false
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
- none: false
84
83
  requirements:
85
- - - ! '>='
84
+ - - "~>"
86
85
  - !ruby/object:Gem::Version
87
- version: '0.32'
86
+ version: '0.9'
88
87
  - !ruby/object:Gem::Dependency
89
88
  name: cisco_nxapi
90
89
  requirement: !ruby/object:Gem::Requirement
91
- none: false
92
90
  requirements:
93
- - - ~>
91
+ - - "~>"
94
92
  - !ruby/object:Gem::Version
95
93
  version: '1.0'
96
94
  type: :runtime
97
95
  prerelease: false
98
96
  version_requirements: !ruby/object:Gem::Requirement
99
- none: false
100
97
  requirements:
101
- - - ~>
98
+ - - "~>"
102
99
  - !ruby/object:Gem::Version
103
100
  version: '1.0'
104
- description: ! 'Utilities for management of Cisco network nodes.
105
-
101
+ description: |
102
+ Utilities for management of Cisco network nodes.
106
103
  Designed to work with Puppet and Chef.
107
-
108
104
  Currently supports NX-OS nodes.
109
-
110
- '
111
105
  email: cisco_agent_gem@cisco.com
112
106
  executables: []
113
107
  extensions: []
114
108
  extra_rdoc_files: []
115
109
  files:
116
- - .gitignore
117
- - .rubocop.yml
118
- - .rubocop_todo.yml
110
+ - ".gitignore"
111
+ - ".rubocop.yml"
112
+ - ".travis.yml"
119
113
  - CHANGELOG.md
120
114
  - CONTRIBUTING.md
121
115
  - Gemfile
@@ -123,91 +117,133 @@ files:
123
117
  - README.md
124
118
  - Rakefile
125
119
  - SUPPORT.md
120
+ - bin/check_metric_limits.rb
121
+ - bin/git/hooks/commit-msg/enforce_style
122
+ - bin/git/hooks/hook_lib
123
+ - bin/git/hooks/hooks-wrapper
124
+ - bin/git/hooks/post-flow-hotfix-start/update-version
125
+ - bin/git/hooks/post-flow-release-finish/update-version
126
+ - bin/git/hooks/post-flow-release-start/update-version
127
+ - bin/git/hooks/post-merge/update-hooks
128
+ - bin/git/hooks/post-rewrite/update-hooks
129
+ - bin/git/hooks/pre-commit/rubocop
130
+ - bin/git/hooks/pre-commit/validate-diffs
131
+ - bin/git/hooks/pre-push/check-changelog
132
+ - bin/git/hooks/pre-push/rubocop
133
+ - bin/git/update-hooks
126
134
  - cisco_node_utils.gemspec
127
- - docs/.rubocop.yml
135
+ - docs/README-develop-best-practices.md
128
136
  - docs/README-develop-node-utils-APIs.md
129
137
  - docs/README-maintainers.md
130
138
  - docs/agent_files.png
131
- - docs/template-feature.rb
132
139
  - docs/template-router.rb
133
- - docs/template-test_feature.rb
134
140
  - docs/template-test_router.rb
141
+ - lib/.rubocop.yml
135
142
  - lib/cisco_node_utils.rb
136
143
  - lib/cisco_node_utils/README_YAML.md
144
+ - lib/cisco_node_utils/bgp.rb
145
+ - lib/cisco_node_utils/bgp_af.rb
146
+ - lib/cisco_node_utils/bgp_neighbor.rb
147
+ - lib/cisco_node_utils/bgp_neighbor_af.rb
137
148
  - lib/cisco_node_utils/cisco_cmn_utils.rb
138
149
  - lib/cisco_node_utils/command_reference.rb
139
150
  - lib/cisco_node_utils/command_reference_common.yaml
151
+ - lib/cisco_node_utils/command_reference_common_bgp.yaml
140
152
  - lib/cisco_node_utils/command_reference_n3064.yaml
141
153
  - lib/cisco_node_utils/command_reference_n7k.yaml
142
154
  - lib/cisco_node_utils/command_reference_n9k.yaml
143
155
  - lib/cisco_node_utils/configparser_lib.rb
156
+ - lib/cisco_node_utils/dns_domain.rb
157
+ - lib/cisco_node_utils/domain_name.rb
144
158
  - lib/cisco_node_utils/interface.rb
145
159
  - lib/cisco_node_utils/interface_ospf.rb
160
+ - lib/cisco_node_utils/name_server.rb
146
161
  - lib/cisco_node_utils/node.rb
162
+ - lib/cisco_node_utils/node_util.rb
163
+ - lib/cisco_node_utils/ntp_config.rb
164
+ - lib/cisco_node_utils/ntp_server.rb
147
165
  - lib/cisco_node_utils/platform.rb
148
- - lib/cisco_node_utils/platform_info.rb
149
- - lib/cisco_node_utils/platform_info.yaml
166
+ - lib/cisco_node_utils/radius_global.rb
167
+ - lib/cisco_node_utils/radius_server.rb
150
168
  - lib/cisco_node_utils/router_ospf.rb
151
169
  - lib/cisco_node_utils/router_ospf_vrf.rb
152
170
  - lib/cisco_node_utils/snmpcommunity.rb
153
171
  - lib/cisco_node_utils/snmpgroup.rb
154
172
  - lib/cisco_node_utils/snmpserver.rb
155
173
  - lib/cisco_node_utils/snmpuser.rb
174
+ - lib/cisco_node_utils/syslog_server.rb
175
+ - lib/cisco_node_utils/syslog_settings.rb
156
176
  - lib/cisco_node_utils/tacacs_server.rb
157
177
  - lib/cisco_node_utils/tacacs_server_host.rb
158
178
  - lib/cisco_node_utils/version.rb
159
179
  - lib/cisco_node_utils/vlan.rb
180
+ - lib/cisco_node_utils/vrf.rb
160
181
  - lib/cisco_node_utils/vtp.rb
161
182
  - lib/cisco_node_utils/yum.rb
183
+ - tests/.rubocop.yml
162
184
  - tests/basetest.rb
163
185
  - tests/ciscotest.rb
164
186
  - tests/cmd_config.yaml
165
187
  - tests/cmd_config_invalid.yaml
166
188
  - tests/n9000_sample-1.0.0-7.0.3.x86_64.rpm
167
- - tests/test_all_cisco.rb
189
+ - tests/platform_info.rb
190
+ - tests/platform_info.yaml
191
+ - tests/test_bgp_af.rb
192
+ - tests/test_bgp_neighbor.rb
193
+ - tests/test_bgp_neighbor_af.rb
168
194
  - tests/test_command_config.rb
169
195
  - tests/test_command_reference.rb
196
+ - tests/test_dns_domain.rb
197
+ - tests/test_domain_name.rb
170
198
  - tests/test_interface.rb
171
199
  - tests/test_interface_ospf.rb
172
200
  - tests/test_interface_svi.rb
173
201
  - tests/test_interface_switchport.rb
202
+ - tests/test_name_server.rb
174
203
  - tests/test_node.rb
175
204
  - tests/test_node_ext.rb
205
+ - tests/test_ntp_config.rb
206
+ - tests/test_ntp_server.rb
176
207
  - tests/test_platform.rb
208
+ - tests/test_radius_global.rb
209
+ - tests/test_radius_server.rb
210
+ - tests/test_router_bgp.rb
177
211
  - tests/test_router_ospf.rb
178
212
  - tests/test_router_ospf_vrf.rb
179
213
  - tests/test_snmpcommunity.rb
180
214
  - tests/test_snmpgroup.rb
181
215
  - tests/test_snmpserver.rb
182
216
  - tests/test_snmpuser.rb
217
+ - tests/test_syslog_server.rb
218
+ - tests/test_syslog_settings.rb
183
219
  - tests/test_tacacs_server.rb
184
220
  - tests/test_tacacs_server_host.rb
185
221
  - tests/test_vlan.rb
222
+ - tests/test_vrf.rb
186
223
  - tests/test_vtp.rb
187
224
  - tests/test_yum.rb
188
- homepage:
225
+ homepage: https://github.com/cisco/cisco-network-node-utils
189
226
  licenses:
190
227
  - Apache-2.0
228
+ metadata: {}
191
229
  post_install_message:
192
230
  rdoc_options: []
193
231
  require_paths:
194
232
  - lib
195
233
  required_ruby_version: !ruby/object:Gem::Requirement
196
- none: false
197
234
  requirements:
198
- - - ! '>='
235
+ - - ">="
199
236
  - !ruby/object:Gem::Version
200
- version: '0'
237
+ version: 2.0.0
201
238
  required_rubygems_version: !ruby/object:Gem::Requirement
202
- none: false
203
239
  requirements:
204
- - - ! '>='
240
+ - - ">="
205
241
  - !ruby/object:Gem::Version
206
- version: '0'
242
+ version: 2.1.0
207
243
  requirements: []
208
244
  rubyforge_project:
209
- rubygems_version: 1.8.23
245
+ rubygems_version: 2.2.2
210
246
  signing_key:
211
- specification_version: 3
247
+ specification_version: 4
212
248
  summary: Utilities for management of Cisco network nodes
213
249
  test_files: []
data/.rubocop_todo.yml DELETED
@@ -1,293 +0,0 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2015-06-22 10:15:27 -0400 using RuboCop version 0.32.0.
3
- # The point is for the user to remove these configuration records
4
- # one by one as the offenses are removed from the code base.
5
- # Note that changes in the inspected code, or installation of new
6
- # versions of RuboCop, may require this file to be generated again.
7
-
8
- # Offense count: 1
9
- # Configuration parameters: AllowSafeAssignment.
10
- Lint/AssignmentInCondition:
11
- Enabled: false
12
-
13
- # Offense count: 2
14
- Lint/ConditionPosition:
15
- Enabled: false
16
-
17
- # Offense count: 4
18
- Lint/DuplicateMethods:
19
- Enabled: false
20
-
21
- # Offense count: 1
22
- Lint/Eval:
23
- Enabled: false
24
-
25
- # Offense count: 1
26
- Lint/HandleExceptions:
27
- Enabled: false
28
-
29
- # Offense count: 3
30
- Lint/ParenthesesAsGroupedExpression:
31
- Enabled: false
32
-
33
- # Offense count: 6
34
- Lint/RescueException:
35
- Enabled: false
36
-
37
- # Offense count: 1
38
- Lint/ShadowingOuterLocalVariable:
39
- Enabled: false
40
-
41
- # Offense count: 32
42
- # Cop supports --auto-correct.
43
- Lint/UnusedBlockArgument:
44
- Enabled: false
45
-
46
- # Offense count: 7
47
- # Cop supports --auto-correct.
48
- Lint/UnusedMethodArgument:
49
- Enabled: false
50
-
51
- # Offense count: 501
52
- Lint/UselessAssignment:
53
- Enabled: false
54
-
55
- # Offense count: 25
56
- Lint/UselessSetterCall:
57
- Enabled: false
58
-
59
- # Offense count: 188
60
- Metrics/AbcSize:
61
- Max: 143
62
-
63
- # Offense count: 4
64
- Metrics/BlockNesting:
65
- Max: 4
66
-
67
- # Offense count: 31
68
- # Configuration parameters: CountComments.
69
- Metrics/ClassLength:
70
- Max: 768
71
-
72
- # Offense count: 26
73
- Metrics/CyclomaticComplexity:
74
- Max: 26
75
-
76
- # Offense count: 235
77
- # Configuration parameters: AllowURI, URISchemes.
78
- Metrics/LineLength:
79
- Max: 128
80
-
81
- # Offense count: 276
82
- # Configuration parameters: CountComments.
83
- Metrics/MethodLength:
84
- Max: 177
85
-
86
- # Offense count: 1
87
- # Configuration parameters: CountKeywordArgs.
88
- Metrics/ParameterLists:
89
- Max: 9
90
-
91
- # Offense count: 22
92
- Metrics/PerceivedComplexity:
93
- Max: 26
94
-
95
- # Offense count: 10
96
- Style/AccessorMethodName:
97
- Enabled: false
98
-
99
- # Offense count: 231
100
- # Cop supports --auto-correct.
101
- # Configuration parameters: EnforcedStyle, SupportedStyles.
102
- Style/AlignParameters:
103
- Enabled: false
104
-
105
- # Offense count: 64
106
- # Cop supports --auto-correct.
107
- # Configuration parameters: EnforcedStyle, SupportedStyles.
108
- Style/AndOr:
109
- Enabled: false
110
-
111
- # Offense count: 3
112
- # Cop supports --auto-correct.
113
- Style/BlockComments:
114
- Enabled: false
115
-
116
- # Offense count: 88
117
- # Cop supports --auto-correct.
118
- # Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
119
- Style/BlockDelimiters:
120
- Enabled: false
121
-
122
- # Offense count: 2
123
- # Cop supports --auto-correct.
124
- # Configuration parameters: EnforcedStyle, SupportedStyles.
125
- Style/BracesAroundHashParameters:
126
- Enabled: false
127
-
128
- # Offense count: 1
129
- Style/CaseEquality:
130
- Enabled: false
131
-
132
- # Offense count: 7
133
- # Cop supports --auto-correct.
134
- # Configuration parameters: EnforcedStyle, SupportedStyles.
135
- Style/ClassCheck:
136
- Enabled: false
137
-
138
- # Offense count: 85
139
- # Cop supports --auto-correct.
140
- Style/ClassMethods:
141
- Enabled: false
142
-
143
- # Offense count: 65
144
- Style/ClassVars:
145
- Enabled: false
146
-
147
- # Offense count: 55
148
- Style/Documentation:
149
- Enabled: false
150
-
151
- # Offense count: 1
152
- Style/DoubleNegation:
153
- Enabled: false
154
-
155
- # Offense count: 5
156
- # Configuration parameters: EnforcedStyle, SupportedStyles.
157
- Style/FormatString:
158
- Enabled: false
159
-
160
- # Offense count: 5
161
- # Configuration parameters: AllowedVariables.
162
- Style/GlobalVars:
163
- Enabled: false
164
-
165
- # Offense count: 10
166
- # Configuration parameters: MinBodyLength.
167
- Style/GuardClause:
168
- Enabled: false
169
-
170
- # Offense count: 153
171
- # Cop supports --auto-correct.
172
- # Configuration parameters: SupportedStyles, UseHashRocketsWithSymbolValues.
173
- Style/HashSyntax:
174
- EnforcedStyle: hash_rockets
175
-
176
- # Offense count: 52
177
- # Cop supports --auto-correct.
178
- # Configuration parameters: EnforcedStyle, SupportedStyles.
179
- Style/IndentationConsistency:
180
- Enabled: false
181
-
182
- # Offense count: 42
183
- # Cop supports --auto-correct.
184
- # Configuration parameters: Width.
185
- Style/IndentationWidth:
186
- Enabled: false
187
-
188
- # Offense count: 56
189
- # Cop supports --auto-correct.
190
- Style/LineEndConcatenation:
191
- Enabled: false
192
-
193
- # Offense count: 105
194
- # Cop supports --auto-correct.
195
- Style/MethodCallParentheses:
196
- Enabled: false
197
-
198
- # Offense count: 1
199
- # Configuration parameters: EnforcedStyle, SupportedStyles.
200
- Style/MethodName:
201
- Enabled: false
202
-
203
- # Offense count: 25
204
- Style/MultilineTernaryOperator:
205
- Enabled: false
206
-
207
- # Offense count: 12
208
- # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
209
- Style/Next:
210
- Enabled: false
211
-
212
- # Offense count: 61
213
- # Cop supports --auto-correct.
214
- Style/Not:
215
- Enabled: false
216
-
217
- # Offense count: 18
218
- # Cop supports --auto-correct.
219
- Style/NumericLiterals:
220
- MinDigits: 11
221
-
222
- # Offense count: 30
223
- # Cop supports --auto-correct.
224
- Style/ParallelAssignment:
225
- Enabled: false
226
-
227
- # Offense count: 1
228
- # Configuration parameters: NamePrefix, NamePrefixBlacklist.
229
- Style/PredicateName:
230
- Enabled: false
231
-
232
- # Offense count: 1
233
- # Configuration parameters: EnforcedStyle, SupportedStyles.
234
- Style/RaiseArgs:
235
- Enabled: false
236
-
237
- # Offense count: 4
238
- # Cop supports --auto-correct.
239
- # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
240
- Style/RegexpLiteral:
241
- Enabled: false
242
-
243
- # Offense count: 139
244
- # Cop supports --auto-correct.
245
- # Configuration parameters: EnforcedStyle, SupportedStyles.
246
- Style/SignalException:
247
- Enabled: false
248
-
249
- # Offense count: 69
250
- # Cop supports --auto-correct.
251
- # Configuration parameters: EnforcedStyleInsidePipes, SupportedStyles.
252
- Style/SpaceAroundBlockParameters:
253
- Enabled: false
254
-
255
- # Offense count: 50
256
- # Cop supports --auto-correct.
257
- # Configuration parameters: EnforcedStyle, SupportedStyles.
258
- Style/SpaceAroundEqualsInParameterDefault:
259
- Enabled: false
260
-
261
- # Offense count: 140
262
- # Cop supports --auto-correct.
263
- # Configuration parameters: MultiSpaceAllowedForOperators.
264
- Style/SpaceAroundOperators:
265
- Enabled: false
266
-
267
- # Offense count: 3
268
- # Cop supports --auto-correct.
269
- Style/SpecialGlobalVars:
270
- Enabled: false
271
-
272
- # Offense count: 3391
273
- # Cop supports --auto-correct.
274
- # Configuration parameters: EnforcedStyle, SupportedStyles.
275
- Style/StringLiterals:
276
- Enabled: false
277
-
278
- # Offense count: 18
279
- # Cop supports --auto-correct.
280
- # Configuration parameters: EnforcedStyle, SupportedStyles.
281
- Style/StringLiteralsInInterpolation:
282
- Enabled: false
283
-
284
- # Offense count: 37
285
- # Cop supports --auto-correct.
286
- # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
287
- Style/TrailingComma:
288
- Enabled: false
289
-
290
- # Offense count: 1
291
- # Configuration parameters: EnforcedStyle, SupportedStyles.
292
- Style/VariableName:
293
- Enabled: false