commutateurs 0.0.9 → 0.1.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.
- checksums.yaml +4 -4
- data/lib/commutateurs/device.rb +28 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a33888431fb187ca05da50b4371075137322b9d6
|
4
|
+
data.tar.gz: 83f3eaefaab6487edc7e7792f94cb17e6efff3e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 976ae5a09146f34468eadeff927283d00de83d36508418cccb618341fdf29b87827097ae60546f9272e4b46c94f0ce68527aa1872c6b7702f43d2cc93628c0a7
|
7
|
+
data.tar.gz: 769651318e2c17af33a9454a3083be2ee50c34795ee16f22b353bd7ffb5dff882c11273c8003bc8eba19d0fdfa4c80b35336ddcbc80d8932787e076c194b3b0c
|
data/lib/commutateurs/device.rb
CHANGED
@@ -23,6 +23,7 @@ module Commutateurs
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
+
# Work in progress
|
26
27
|
class HP < Base
|
27
28
|
def initialize(host, credentials, verbose = false)
|
28
29
|
super
|
@@ -139,6 +140,33 @@ module Commutateurs
|
|
139
140
|
end
|
140
141
|
|
141
142
|
def configuration
|
143
|
+
execute('get config')
|
144
|
+
end
|
145
|
+
|
146
|
+
def save
|
147
|
+
end
|
148
|
+
|
149
|
+
def disconnect
|
150
|
+
@transport.send 'exit'
|
151
|
+
@transport.close
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
class Fortigate < Base
|
156
|
+
def initialize(host, credentials, verbose = false)
|
157
|
+
super
|
158
|
+
@transport.default_prompt = / # $/
|
159
|
+
end
|
160
|
+
|
161
|
+
def enable
|
162
|
+
end
|
163
|
+
|
164
|
+
def connect
|
165
|
+
@transport.connect
|
166
|
+
end
|
167
|
+
|
168
|
+
def configuration
|
169
|
+
execute('show')
|
142
170
|
end
|
143
171
|
|
144
172
|
def save
|