Closed david22swan closed 5 years ago
Change has run through the adhoc pipelines and passed successfully.
@david22swan Could you fixup the Rubocop issues.
:exclamation: No coverage uploaded for pull request base (
develop@1746f1d
). Click here to learn what that means. The diff coverage is14.34%
.
@@ Coverage Diff @@
## develop #550 +/- ##
=========================================
Coverage ? 5.79%
=========================================
Files ? 177
Lines ? 20924
Branches ? 0
=========================================
Hits ? 1212
Misses ? 19712
Partials ? 0
Impacted Files | Coverage Δ | |
---|---|---|
lib/puppet_x/cisco_nexus/transport_shim.rb | 0% <0%> (ø) |
|
lib/puppet/transport/schema/cisco_nexus.rb | 100% <100%> (ø) |
|
...b/puppet/util/network_device/cisco_nexus/device.rb | 54.16% <52.17%> (ø) |
|
lib/puppet/transport/cisco_nexus.rb | 95% <95%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 1746f1d...4f7678b. Read the comment docs.
Rubocop error's fixed. They were hiding behind the modules cloned down by the spec_prep
@mikewiebe @chrisvanheuveln - Would you be able to review this pr please? Tests have passed clean on the 9k and while failures where encountered when running against the 7k, they were consistent with those seen on the released version.
@david22swan Thanks for the PR. We will review this but it will likely be next week before we can get to it.
I don't love changing the configuration key names from what we were using with puppet device. My preference would be some sort of backwards compatibility with the old keys, or at the very least well documented note on the change. (Same applies for cisco_ios)
@shermdog @mikewiebe @chrisvanheuveln
Pushed a commit to https://github.com/cisco/cisco-network-puppet-module/pull/551 which contains a function that maps pre-transport fields to transport schema. Allows backwards compatibility.
Work done by @willmeek to ensure backwards compatibility, https://github.com/cisco/cisco-network-puppet-module/pull/551, has been pulled into this pr.
@david22swan I am running a full regression and will merge if things look ok.
PR to update the module to utilize a
transport
class rather than the currentdevice
one. Will be backwards compatible.lib/puppet/transport/cisco_nexus.rb
.lib/puppet/transport/schema/cisco_nexus.rb
.lib/puppet/util.network_device/cisco_nexus/device.rb
.lib/puppet_x/cisco/transport_shim.rb
.spec/unit/puppet/transport/cisco_nexus_spec.rb
.spec/unit/puppet/util/network_device/cisco_nexus/device_spec.rb
puppet_resource_api
gem version.