cisco_node_utils 2.0.1 → 2.0.2
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/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/cisco_node_utils/feature.rb +8 -4
- data/lib/cisco_node_utils/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a05bb2305207d3df446759d870f0422c458539b
|
|
4
|
+
data.tar.gz: c596cbf4b824b6ca0c07a90d89eeb8e6c7c2cd1f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 01221c8c8d2d9c99bc89abab9d6650975d5288fd93f4d87994333cea2cd6107d3cae973d3995cbb40a4134b4aeb619616642861c9294d470bb4f5b79695b9539
|
|
7
|
+
data.tar.gz: 661b5c54fc64633b60b585c3aa1e5aa44dcc20b37272907d4ae599f6171986ee17f797b0e92fc7805d0149cb21a6dc2c8123a2a92f396cb062b01042deee58c7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## [v2.0.2]
|
|
5
|
+
|
|
6
|
+
### Issues Addressed
|
|
7
|
+
* Fixes `Error: Could not retrieve local facts: [Cisco::Vdc]` on some N7k platforms
|
|
8
|
+
|
|
4
9
|
## [v2.0.1]
|
|
5
10
|
|
|
6
11
|
### Issues Addressed
|
|
@@ -616,6 +621,7 @@ Cisco::Environment.add_env('default', env)
|
|
|
616
621
|
[git-flow]: https://github.com/petervanderdoes/gitflow-avh
|
|
617
622
|
[SimpleCov]: https://github.com/colszowka/simplecov
|
|
618
623
|
|
|
624
|
+
[v2.0.2]: https://github.com/cisco/cisco-network-node-utils/compare/v2.0.1...v2.0.2
|
|
619
625
|
[v2.0.1]: https://github.com/cisco/cisco-network-node-utils/compare/v2.0.0...v2.0.1
|
|
620
626
|
[v2.0.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.10.0...v2.0.0
|
|
621
627
|
[v1.10.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.9.0...v1.10.0
|
data/README.md
CHANGED
|
@@ -231,7 +231,7 @@ See [CHANGELOG](CHANGELOG.md) for a list of changes.
|
|
|
231
231
|
## <a name="license_info">License Information</a>
|
|
232
232
|
|
|
233
233
|
|
|
234
|
-
Copyright (c) 2013-
|
|
234
|
+
Copyright (c) 2013-2019 Cisco and/or its affiliates.
|
|
235
235
|
|
|
236
236
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
237
237
|
you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# January 2016, Robert W Gries
|
|
2
2
|
#
|
|
3
|
-
# Copyright (c) 2015-
|
|
3
|
+
# Copyright (c) 2015-2019 Cisco and/or its affiliates.
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -363,9 +363,13 @@ module Cisco
|
|
|
363
363
|
# get the slot numbers only into filtered slots array
|
|
364
364
|
filt_slots = slots.keys.map { |key| key[/\d+/] }
|
|
365
365
|
# now filter interfaces in the vdc based on compatible slots
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
366
|
+
begin
|
|
367
|
+
vdc = Vdc.new(Vdc.default_vdc_name)
|
|
368
|
+
filt_intfs = vdc.interface_membership.select do |intf|
|
|
369
|
+
filt_slots.include? intf[/\d+/]
|
|
370
|
+
end
|
|
371
|
+
rescue CliError
|
|
372
|
+
filt_intfs = []
|
|
369
373
|
end
|
|
370
374
|
filt_intfs
|
|
371
375
|
end
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
# Container module for version number only.
|
|
16
16
|
module CiscoNodeUtils
|
|
17
|
-
VERSION = '2.0.
|
|
17
|
+
VERSION = '2.0.2'
|
|
18
18
|
gem_version = Gem::Version.new(Gem::VERSION)
|
|
19
19
|
min_gem_version = Gem::Version.new('2.1.0')
|
|
20
20
|
fail 'Required rubygems version >= 2.1.0' if gem_version < min_gem_version
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cisco_node_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rob Gries
|
|
@@ -15,7 +15,7 @@ authors:
|
|
|
15
15
|
autorequire:
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
|
-
date: 2019-
|
|
18
|
+
date: 2019-06-25 00:00:00.000000000 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: bundler
|
|
@@ -517,7 +517,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
517
517
|
version: 2.1.0
|
|
518
518
|
requirements: []
|
|
519
519
|
rubyforge_project:
|
|
520
|
-
rubygems_version: 2.5.2.
|
|
520
|
+
rubygems_version: 2.5.2.1
|
|
521
521
|
signing_key:
|
|
522
522
|
specification_version: 4
|
|
523
523
|
summary: Utilities for management of Cisco network nodes
|