rbeapi 0.5.0 → 0.5.1

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 (57) hide show
  1. data/CHANGELOG.md +4 -0
  2. data/Gemfile +1 -1
  3. data/README.md +17 -12
  4. data/guide/.gitignore +2 -0
  5. data/guide/api.rst +5894 -0
  6. data/guide/conf.py +5 -5
  7. data/guide/contributing.rst +6 -0
  8. data/guide/getting-started.rst +134 -0
  9. data/guide/index.rst +3 -5
  10. data/guide/installation.rst +56 -1
  11. data/guide/license.rst +13 -2
  12. data/guide/overview.rst +2 -5
  13. data/guide/testing.rst +5 -1
  14. data/guide/upgrading.rst +10 -0
  15. data/lib/rbeapi/api.rb +37 -36
  16. data/lib/rbeapi/api/aaa.rb +90 -90
  17. data/lib/rbeapi/api/acl.rb +70 -53
  18. data/lib/rbeapi/api/bgp.rb +186 -163
  19. data/lib/rbeapi/api/dns.rb +51 -45
  20. data/lib/rbeapi/api/interfaces.rb +344 -328
  21. data/lib/rbeapi/api/ipinterfaces.rb +92 -92
  22. data/lib/rbeapi/api/logging.rb +32 -32
  23. data/lib/rbeapi/api/mlag.rb +97 -97
  24. data/lib/rbeapi/api/ntp.rb +39 -39
  25. data/lib/rbeapi/api/ospf.rb +58 -58
  26. data/lib/rbeapi/api/prefixlists.rb +22 -22
  27. data/lib/rbeapi/api/radius.rb +77 -49
  28. data/lib/rbeapi/api/routemaps.rb +110 -64
  29. data/lib/rbeapi/api/snmp.rb +104 -100
  30. data/lib/rbeapi/api/staticroutes.rb +27 -20
  31. data/lib/rbeapi/api/stp.rb +100 -84
  32. data/lib/rbeapi/api/switchports.rb +98 -77
  33. data/lib/rbeapi/api/system.rb +93 -25
  34. data/lib/rbeapi/api/tacacs.rb +54 -35
  35. data/lib/rbeapi/api/users.rb +68 -68
  36. data/lib/rbeapi/api/varp.rb +56 -47
  37. data/lib/rbeapi/api/vlans.rb +86 -86
  38. data/lib/rbeapi/api/vrrp.rb +210 -173
  39. data/lib/rbeapi/client.rb +142 -108
  40. data/lib/rbeapi/eapilib.rb +73 -62
  41. data/lib/rbeapi/utils.rb +8 -8
  42. data/lib/rbeapi/version.rb +2 -2
  43. data/spec/fixtures/test.conf +3 -3
  44. data/spec/system/rbeapi/api/system_spec.rb +46 -2
  45. data/spec/system/rbeapi/api/vlans_spec.rb +5 -2
  46. data/spec/system/rbeapi/client_spec.rb +4 -4
  47. data/spec/unit/rbeapi/api/system/default_spec.rb +40 -4
  48. data/spec/unit/rbeapi/api/system/fixture_system.text +14 -0
  49. data/spec/unit/rbeapi/api/vlans/default_spec.rb +1 -1
  50. data/spec/unit/rbeapi/api/vlans/fixture_vlans.text +2 -0
  51. data/spec/unit/rbeapi/client_spec.rb +1 -0
  52. metadata +9 -9
  53. data/guide/cookbook.rst +0 -4
  54. data/guide/developing.rst +0 -4
  55. data/guide/faq.rst +0 -4
  56. data/guide/quickstart.rst +0 -4
  57. data/guide/troubleshooting.rst +0 -1
@@ -1,2 +1,16 @@
1
1
  hostname localhost
2
2
  ip routing
3
+ banner login
4
+ Login Banner
5
+ Second Line
6
+ 123456
7
+ EOF
8
+ EOF
9
+ !
10
+ banner motd
11
+ MOTD Banner
12
+ Second Line
13
+ EOF
14
+ *\v1?
15
+ EOF
16
+ !
@@ -21,7 +21,7 @@ describe Rbeapi::Api::Vlans do
21
21
 
22
22
  describe '#get' do
23
23
  let(:entity) do
24
- { name: 'default', state: 'active', trunk_groups: [] }
24
+ { name: 'default', state: 'active', trunk_groups: %w(mlag_ctl test) }
25
25
  end
26
26
 
27
27
  it 'returns the vlan resource' do
@@ -2,4 +2,6 @@ vlan 1
2
2
  name default
3
3
  state active
4
4
  no private-vlan
5
+ trunk group mlag_ctl
6
+ trunk group test
5
7
  !
@@ -121,6 +121,7 @@ describe Rbeapi::Client do
121
121
  it 'returns the configuration options for the connection' do
122
122
  expect(subject.load_config(test_conf)).to eq(nil)
123
123
  expect(subject.config_for('veos01')).to eq(veos01)
124
+ expect(subject.config_for('veos05')).to eq(veos05)
124
125
  end
125
126
  end
126
127
 
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.5.0
4
+ version: 0.5.1
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-01-12 00:00:00.000000000 Z
12
+ date: 2016-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: inifile
@@ -211,23 +211,23 @@ files:
211
211
  - gems/net_http_unix/net_http_unix.spec.tmpl
212
212
  - gems/netaddr/README.rst
213
213
  - gems/netaddr/netaddr.spec.tmpl
214
+ - guide/.gitignore
214
215
  - guide/Makefile
215
216
  - guide/_static/arista_logo_11-trans-w.png
216
217
  - guide/_static/arista_logo_jpg-11.jpg
217
218
  - guide/_static/favicon.ico
219
+ - guide/api.rst
218
220
  - guide/conf.py
219
- - guide/cookbook.rst
220
- - guide/developing.rst
221
- - guide/faq.rst
221
+ - guide/contributing.rst
222
+ - guide/getting-started.rst
222
223
  - guide/index.rst
223
224
  - guide/installation.rst
224
225
  - guide/license.rst
225
226
  - guide/overview.rst
226
- - guide/quickstart.rst
227
227
  - guide/release-notes-0.5.0.rst
228
228
  - guide/release-notes.rst
229
229
  - guide/testing.rst
230
- - guide/troubleshooting.rst
230
+ - guide/upgrading.rst
231
231
  - lib/rbeapi.rb
232
232
  - lib/rbeapi/api.rb
233
233
  - lib/rbeapi/api/aaa.rb
@@ -345,7 +345,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
345
345
  version: '0'
346
346
  segments:
347
347
  - 0
348
- hash: -1152048949229311589
348
+ hash: -4031980114989372067
349
349
  required_rubygems_version: !ruby/object:Gem::Requirement
350
350
  none: false
351
351
  requirements:
@@ -354,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
354
354
  version: '0'
355
355
  segments:
356
356
  - 0
357
- hash: -1152048949229311589
357
+ hash: -4031980114989372067
358
358
  requirements: []
359
359
  rubyforge_project:
360
360
  rubygems_version: 1.8.23
@@ -1,4 +0,0 @@
1
- Cookbook
2
- ============
3
-
4
- .. contents:: :local:
@@ -1,4 +0,0 @@
1
- Developing
2
- ==========
3
-
4
- .. contents:: :local:
@@ -1,4 +0,0 @@
1
- FAQ
2
- ===
3
-
4
- .. contents:: :local:
@@ -1,4 +0,0 @@
1
- Quick Start
2
- ===========
3
-
4
- .. contents:: :local:
@@ -1 +0,0 @@
1
- .. _troubleshooting: