UCSAPI 0.0.8 → 0.0.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.
- data/lib/UCSAPI.rb +5 -7
- metadata +2 -2
data/lib/UCSAPI.rb
CHANGED
|
@@ -34,7 +34,7 @@ module UCSAPI
|
|
|
34
34
|
require_relative 'Nuova'
|
|
35
35
|
require_relative 'UCSMO'
|
|
36
36
|
|
|
37
|
-
VERSION = '0.0.
|
|
37
|
+
VERSION = '0.0.9'
|
|
38
38
|
|
|
39
39
|
class UCS
|
|
40
40
|
|
|
@@ -80,7 +80,7 @@ module UCSAPI
|
|
|
80
80
|
|
|
81
81
|
classId = 'networkElement'
|
|
82
82
|
if opts[:dn]
|
|
83
|
-
element = @api.configResolveDn( :dn => dn)
|
|
83
|
+
element = @api.configResolveDn( :dn => opts[:dn])
|
|
84
84
|
found = Fabric.create(@api,element)
|
|
85
85
|
elsif opts[:id] then
|
|
86
86
|
dn = 'sys/switch-' + opts[:id]
|
|
@@ -96,13 +96,11 @@ module UCSAPI
|
|
|
96
96
|
found
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
-
def fabrics
|
|
99
|
+
def fabrics(opts={})
|
|
100
100
|
@log.info("fabrics started")
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
found = FabricArray.create(@api,elements)
|
|
105
|
-
|
|
102
|
+
found = fabric(opts)
|
|
103
|
+
|
|
106
104
|
@log.info("fabrics ended")
|
|
107
105
|
found
|
|
108
106
|
end
|