rbeapi 0.5.1 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +211 -76
- data/Gemfile +14 -3
- data/README.md +74 -38
- data/Rakefile +38 -17
- data/gems/inifile/inifile.spec.tmpl +31 -4
- data/gems/net_http_unix/net_http_unix.spec.tmpl +34 -8
- data/gems/netaddr/netaddr.spec.tmpl +31 -5
- data/guide/getting-started.rst +95 -64
- data/guide/installation.rst +27 -6
- data/guide/release-notes.rst +5 -1
- data/guide/testing.rst +5 -2
- data/guide/upgrading.rst +2 -0
- data/lib/rbeapi/api/dns.rb +8 -2
- data/lib/rbeapi/api/interfaces.rb +107 -21
- data/lib/rbeapi/api/ipinterfaces.rb +48 -0
- data/lib/rbeapi/api/prefixlists.rb +53 -23
- data/lib/rbeapi/api/routemaps.rb +11 -0
- data/lib/rbeapi/api/stp.rb +6 -3
- data/lib/rbeapi/api/switchports.rb +5 -11
- data/lib/rbeapi/api/system.rb +1 -1
- data/lib/rbeapi/api/users.rb +2 -0
- data/lib/rbeapi/api/varp.rb +6 -0
- data/lib/rbeapi/api/vlans.rb +44 -0
- data/lib/rbeapi/api/vrrp.rb +13 -0
- data/lib/rbeapi/client.rb +19 -4
- data/lib/rbeapi/switchconfig.rb +330 -0
- data/lib/rbeapi/version.rb +1 -1
- data/rbeapi.gemspec +2 -0
- data/rbeapi.spec.tmpl +30 -3
- data/spec/fixtures/.gitignore +1 -0
- data/spec/support/matchers/switch_config_sections.rb +80 -0
- data/spec/system/rbeapi/api/interfaces_base_spec.rb +32 -3
- data/spec/system/rbeapi/api/interfaces_ethernet_spec.rb +56 -8
- data/spec/system/rbeapi/api/interfaces_portchannel_spec.rb +33 -1
- data/spec/system/rbeapi/api/interfaces_vxlan_spec.rb +27 -0
- data/spec/system/rbeapi/api/ipinterfaces_spec.rb +34 -1
- data/spec/system/rbeapi/api/prefixlists_spec.rb +198 -0
- data/spec/system/rbeapi/api/stp_instances_spec.rb +49 -5
- data/spec/system/rbeapi/api/switchports_spec.rb +15 -9
- data/spec/system/rbeapi/api/vlans_spec.rb +46 -0
- data/spec/unit/rbeapi/api/interfaces/base_spec.rb +1 -1
- data/spec/unit/rbeapi/api/interfaces/ethernet_spec.rb +1 -1
- data/spec/unit/rbeapi/api/interfaces/portchannel_spec.rb +9 -2
- data/spec/unit/rbeapi/api/interfaces/vxlan_spec.rb +1 -1
- data/spec/unit/rbeapi/api/prefixlists/default_spec.rb +202 -0
- data/spec/unit/rbeapi/api/prefixlists/fixture_prefixlists.text +11 -0
- data/spec/unit/rbeapi/api/routemaps/default_spec.rb +5 -0
- data/spec/unit/rbeapi/api/switchports/default_spec.rb +4 -4
- data/spec/unit/rbeapi/api/system/default_spec.rb +5 -0
- data/spec/unit/rbeapi/api/system/fixture_system.text +1 -0
- data/spec/unit/rbeapi/api/vlans/default_spec.rb +30 -0
- data/spec/unit/rbeapi/api/vrrp/default_spec.rb +10 -0
- data/spec/unit/rbeapi/client_spec.rb +42 -0
- data/spec/unit/rbeapi/switchconfig2_spec.rb +119 -0
- data/spec/unit/rbeapi/switchconfig3_spec.rb +125 -0
- data/spec/unit/rbeapi/switchconfig_spec.rb +335 -0
- metadata +21 -7
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbeapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0
|
4
|
+
version: '1.0'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-09-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: inifile
|
@@ -256,10 +256,12 @@ files:
|
|
256
256
|
- lib/rbeapi/client.rb
|
257
257
|
- lib/rbeapi/eapilib.rb
|
258
258
|
- lib/rbeapi/netdev/snmp.rb
|
259
|
+
- lib/rbeapi/switchconfig.rb
|
259
260
|
- lib/rbeapi/utils.rb
|
260
261
|
- lib/rbeapi/version.rb
|
261
262
|
- rbeapi.gemspec
|
262
263
|
- rbeapi.spec.tmpl
|
264
|
+
- spec/fixtures/.gitignore
|
263
265
|
- spec/fixtures/dut.conf
|
264
266
|
- spec/fixtures/eapi.conf.yaml
|
265
267
|
- spec/fixtures/empty.conf
|
@@ -268,6 +270,7 @@ files:
|
|
268
270
|
- spec/fixtures/wildcard.conf
|
269
271
|
- spec/spec_helper.rb
|
270
272
|
- spec/support/fixtures.rb
|
273
|
+
- spec/support/matchers/switch_config_sections.rb
|
271
274
|
- spec/support/shared_examples_for_api_modules.rb
|
272
275
|
- spec/system/rbeapi/api/aaa_groups_spec.rb
|
273
276
|
- spec/system/rbeapi/api/aaa_spec.rb
|
@@ -286,6 +289,7 @@ files:
|
|
286
289
|
- spec/system/rbeapi/api/ntp_spec.rb
|
287
290
|
- spec/system/rbeapi/api/ospf_interfaces_spec.rb
|
288
291
|
- spec/system/rbeapi/api/ospf_spec.rb
|
292
|
+
- spec/system/rbeapi/api/prefixlists_spec.rb
|
289
293
|
- spec/system/rbeapi/api/routemaps_spec.rb
|
290
294
|
- spec/system/rbeapi/api/snmp_spec.rb
|
291
295
|
- spec/system/rbeapi/api/staticroutes_spec.rb
|
@@ -315,6 +319,8 @@ files:
|
|
315
319
|
- spec/unit/rbeapi/api/interfaces/vxlan_spec.rb
|
316
320
|
- spec/unit/rbeapi/api/mlag/default_spec.rb
|
317
321
|
- spec/unit/rbeapi/api/mlag/fixture_mlag.text
|
322
|
+
- spec/unit/rbeapi/api/prefixlists/default_spec.rb
|
323
|
+
- spec/unit/rbeapi/api/prefixlists/fixture_prefixlists.text
|
318
324
|
- spec/unit/rbeapi/api/routemaps/default_spec.rb
|
319
325
|
- spec/unit/rbeapi/api/routemaps/fixture_routemaps.text
|
320
326
|
- spec/unit/rbeapi/api/staticroutes/default_spec.rb
|
@@ -330,6 +336,9 @@ files:
|
|
330
336
|
- spec/unit/rbeapi/api/vrrp/default_spec.rb
|
331
337
|
- spec/unit/rbeapi/api/vrrp/fixture_vrrp.text
|
332
338
|
- spec/unit/rbeapi/client_spec.rb
|
339
|
+
- spec/unit/rbeapi/switchconfig2_spec.rb
|
340
|
+
- spec/unit/rbeapi/switchconfig3_spec.rb
|
341
|
+
- spec/unit/rbeapi/switchconfig_spec.rb
|
333
342
|
homepage: https://github.com/arista-eosplus/rbeapi
|
334
343
|
licenses:
|
335
344
|
- New BSD
|
@@ -342,10 +351,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
342
351
|
requirements:
|
343
352
|
- - ! '>='
|
344
353
|
- !ruby/object:Gem::Version
|
345
|
-
version:
|
346
|
-
segments:
|
347
|
-
- 0
|
348
|
-
hash: -4031980114989372067
|
354
|
+
version: 1.9.3
|
349
355
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
350
356
|
none: false
|
351
357
|
requirements:
|
@@ -354,7 +360,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
354
360
|
version: '0'
|
355
361
|
segments:
|
356
362
|
- 0
|
357
|
-
hash: -
|
363
|
+
hash: -1595496681146581179
|
358
364
|
requirements: []
|
359
365
|
rubyforge_project:
|
360
366
|
rubygems_version: 1.8.23
|
@@ -362,6 +368,7 @@ signing_key:
|
|
362
368
|
specification_version: 3
|
363
369
|
summary: This Gem library provides a Ruby interface to the Arista EOS command API
|
364
370
|
test_files:
|
371
|
+
- spec/fixtures/.gitignore
|
365
372
|
- spec/fixtures/dut.conf
|
366
373
|
- spec/fixtures/eapi.conf.yaml
|
367
374
|
- spec/fixtures/empty.conf
|
@@ -370,6 +377,7 @@ test_files:
|
|
370
377
|
- spec/fixtures/wildcard.conf
|
371
378
|
- spec/spec_helper.rb
|
372
379
|
- spec/support/fixtures.rb
|
380
|
+
- spec/support/matchers/switch_config_sections.rb
|
373
381
|
- spec/support/shared_examples_for_api_modules.rb
|
374
382
|
- spec/system/rbeapi/api/aaa_groups_spec.rb
|
375
383
|
- spec/system/rbeapi/api/aaa_spec.rb
|
@@ -388,6 +396,7 @@ test_files:
|
|
388
396
|
- spec/system/rbeapi/api/ntp_spec.rb
|
389
397
|
- spec/system/rbeapi/api/ospf_interfaces_spec.rb
|
390
398
|
- spec/system/rbeapi/api/ospf_spec.rb
|
399
|
+
- spec/system/rbeapi/api/prefixlists_spec.rb
|
391
400
|
- spec/system/rbeapi/api/routemaps_spec.rb
|
392
401
|
- spec/system/rbeapi/api/snmp_spec.rb
|
393
402
|
- spec/system/rbeapi/api/staticroutes_spec.rb
|
@@ -417,6 +426,8 @@ test_files:
|
|
417
426
|
- spec/unit/rbeapi/api/interfaces/vxlan_spec.rb
|
418
427
|
- spec/unit/rbeapi/api/mlag/default_spec.rb
|
419
428
|
- spec/unit/rbeapi/api/mlag/fixture_mlag.text
|
429
|
+
- spec/unit/rbeapi/api/prefixlists/default_spec.rb
|
430
|
+
- spec/unit/rbeapi/api/prefixlists/fixture_prefixlists.text
|
420
431
|
- spec/unit/rbeapi/api/routemaps/default_spec.rb
|
421
432
|
- spec/unit/rbeapi/api/routemaps/fixture_routemaps.text
|
422
433
|
- spec/unit/rbeapi/api/staticroutes/default_spec.rb
|
@@ -432,4 +443,7 @@ test_files:
|
|
432
443
|
- spec/unit/rbeapi/api/vrrp/default_spec.rb
|
433
444
|
- spec/unit/rbeapi/api/vrrp/fixture_vrrp.text
|
434
445
|
- spec/unit/rbeapi/client_spec.rb
|
446
|
+
- spec/unit/rbeapi/switchconfig2_spec.rb
|
447
|
+
- spec/unit/rbeapi/switchconfig3_spec.rb
|
448
|
+
- spec/unit/rbeapi/switchconfig_spec.rb
|
435
449
|
has_rdoc:
|