Skip to content

Commit 394ea49

Browse files
authored
Merge pull request #629 from cisco/release_2.0.2
Release 2.0.2
2 parents a617a9e + ad237c0 commit 394ea49

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
## [v2.0.2]
5+
6+
### Issues Addressed
7+
* Fixes `Error: Could not retrieve local facts: [Cisco::Vdc]` on some N7k platforms
8+
49
## [v2.0.1]
510

611
### Issues Addressed
@@ -616,6 +621,7 @@ Cisco::Environment.add_env('default', env)
616621
[git-flow]: https://github.com/petervanderdoes/gitflow-avh
617622
[SimpleCov]: https://github.com/colszowka/simplecov
618623

624+
[v2.0.2]: https://github.com/cisco/cisco-network-node-utils/compare/v2.0.1...v2.0.2
619625
[v2.0.1]: https://github.com/cisco/cisco-network-node-utils/compare/v2.0.0...v2.0.1
620626
[v2.0.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.10.0...v2.0.0
621627
[v1.10.0]: https://github.com/cisco/cisco-network-node-utils/compare/v1.9.0...v1.10.0

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ See [CHANGELOG](CHANGELOG.md) for a list of changes.
231231
## <a name="license_info">License Information</a>
232232

233233

234-
Copyright (c) 2013-2018 Cisco and/or its affiliates.
234+
Copyright (c) 2013-2019 Cisco and/or its affiliates.
235235

236236
Licensed under the Apache License, Version 2.0 (the "License");
237237
you may not use this file except in compliance with the License.

lib/cisco_node_utils/feature.rb

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# January 2016, Robert W Gries
22
#
3-
# Copyright (c) 2015-2017 Cisco and/or its affiliates.
3+
# Copyright (c) 2015-2019 Cisco and/or its affiliates.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -363,9 +363,13 @@ def self.compatible_interfaces(feature, property='supported_module_pids')
363363
# get the slot numbers only into filtered slots array
364364
filt_slots = slots.keys.map { |key| key[/\d+/] }
365365
# now filter interfaces in the vdc based on compatible slots
366-
vdc = Vdc.new(Vdc.default_vdc_name)
367-
filt_intfs = vdc.interface_membership.select do |intf|
368-
filt_slots.include? intf[/\d+/]
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 = []
369373
end
370374
filt_intfs
371375
end

lib/cisco_node_utils/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Container module for version number only.
1616
module CiscoNodeUtils
17-
VERSION = '2.0.1'
17+
VERSION = '2.0.2'
1818
gem_version = Gem::Version.new(Gem::VERSION)
1919
min_gem_version = Gem::Version.new('2.1.0')
2020
fail 'Required rubygems version >= 2.1.0' if gem_version < min_gem_version

0 commit comments

Comments
 (0)