commutateurs 0.1.8 → 0.1.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b54a208194a99559937ef2cd8065578ef495ec7c
4
- data.tar.gz: 090435094a399b15d9810be9105cf29611d2d7f7
3
+ metadata.gz: 544da22d7769b00df93d5ab8900e20fedf4c9ba3
4
+ data.tar.gz: a02bb5a9bb5c2c6bbef4be4e346bc841c4eb0a19
5
5
  SHA512:
6
- metadata.gz: e250b2a517d5b6fd5612f97e446f003ce292cb25647e3ee29e0a75e989d403a12a18cf817fc0586dbe90d711b3cb6d3d19dfda3237480f35fbe8cc916ef1cb76
7
- data.tar.gz: 1c5714d3332ecde8b37da52a7b47d5e73bf0e9542a12bd28ad297105a5ac39ed2b71ae74cbbf6d484482432421256d51f3dd2afed7a83daf38d556dbd2895c75
6
+ metadata.gz: 98dd507109dc3df90344ed532f880211d004932fc2569c0b9ab73b29fdddaea0ad34770192100a700012da186df675689f08ff480926c0d2d0857eb47cfaf3f1
7
+ data.tar.gz: 61318cea86794f00b86f0a9e7e11a6cfa4672562710561cfebc6adba2ce5207ed114d903445215881c73b14eb64af2f3256a370911cb993f41dc401755e8bc5e
data/lib/commutateurs.rb CHANGED
@@ -12,3 +12,4 @@ require_relative './commutateurs/fortigate'
12
12
  require_relative './commutateurs/h3c'
13
13
  require_relative './commutateurs/hp'
14
14
  require_relative './commutateurs/juniper'
15
+ require_relative './commutateurs/brocade'
@@ -0,0 +1,27 @@
1
+ module Commutateurs
2
+ class Brocade < Base
3
+ def initialize(host, credentials, verbose = false)
4
+ super
5
+ @transport.default_prompt = /:admin> $/
6
+ end
7
+
8
+ def enable
9
+ end
10
+
11
+ def connect
12
+ @transport.connect
13
+ end
14
+
15
+ def configuration
16
+ execute('configshow')
17
+ end
18
+
19
+ def save
20
+ end
21
+
22
+ def disconnect
23
+ @transport.send 'exit'
24
+ @transport.close
25
+ end
26
+ end
27
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commutateurs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Rose
@@ -37,6 +37,7 @@ files:
37
37
  - lib/commutateurs/h3c.rb
38
38
  - lib/commutateurs/hp.rb
39
39
  - lib/commutateurs/juniper.rb
40
+ - lib/commutateurs/brocade.rb
40
41
  - lib/commutateurs/ssh.rb
41
42
  - lib/commutateurs.rb
42
43
  homepage: http://www.github.com/guillaumerose/commutateurs