Skip to content

Commit 3e4b2cf

Browse files
committed
Merge branch 'release/1.0.0'
2 parents 66ddc7b + ceb0c80 commit 3e4b2cf

File tree

157 files changed

+3827
-744
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+3827
-744
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.chef/
2+
.vagrant/
3+
.kitchen/
4+
.kitchen.local.yml

.kitchen.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
driver:
3+
name: vagrant
4+
5+
provisioner:
6+
name: chef_zero
7+
8+
platforms:
9+
- name: packer-wrl-x86_64
10+
driver_config:
11+
box: packer-wrl-x86_64
12+
box_url: /Users/rkailas/packer/packer-wrl.box
13+
suites:
14+
- name: default
15+
run_list:
16+
- recipe[ciscolib_nxos::cisco_package_test_all]
17+
attributes:

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format documentation

.rubocop.yml

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
AllCops:
2+
Include:
3+
- attributes/*.rb
4+
- docs/*.rb
5+
- libraries/*.rb
6+
- recipes/*.rb
7+
- spec/**/*.rb
8+
Exclude:
9+
- metadata.rb
10+
- files/**/*
11+
12+
# This configuration was generated by `rubocop --auto-gen-config`
13+
# on 2015-08-11 22:43:57 -0500 using RuboCop version 0.32.1.
14+
# The point is for the user to remove these configuration records
15+
# one by one as the offenses are removed from the code base.
16+
# Note that changes in the inspected code, or installation of new
17+
# versions of RuboCop, may require this file to be generated again.
18+
19+
# Offense count: 15
20+
Metrics/AbcSize:
21+
Max: 169
22+
23+
# Offense count: 2
24+
# Configuration parameters: CountComments.
25+
Metrics/ClassLength:
26+
Max: 135
27+
28+
# Offense count: 10
29+
Metrics/CyclomaticComplexity:
30+
Max: 31
31+
32+
# Offense count: 64
33+
# Configuration parameters: AllowURI, URISchemes.
34+
Metrics/LineLength:
35+
Max: 158
36+
37+
# Offense count: 16
38+
# Configuration parameters: CountComments.
39+
Metrics/MethodLength:
40+
Max: 110
41+
42+
# Offense count: 11
43+
Metrics/PerceivedComplexity:
44+
Max: 32
45+
46+
# Offense count: 1
47+
Style/AccessorMethodName:
48+
Enabled: false
49+
50+
# Offense count: 32
51+
# Cop supports --auto-correct.
52+
# Configuration parameters: EnforcedStyle, SupportedStyles.
53+
Style/AndOr:
54+
Enabled: false
55+
56+
# Offense count: 12
57+
# Cop supports --auto-correct.
58+
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
59+
Style/BlockDelimiters:
60+
Enabled: false
61+
62+
# Offense count: 4
63+
Style/ClassAndModuleCamelCase:
64+
Enabled: false
65+
66+
# Offense count: 30
67+
# Configuration parameters: EnforcedStyle, SupportedStyles.
68+
Style/ClassAndModuleChildren:
69+
Enabled: false
70+
71+
# Offense count: 1
72+
# Cop supports --auto-correct.
73+
# Configuration parameters: EnforcedStyle, SupportedStyles.
74+
Style/ClassCheck:
75+
Enabled: false
76+
77+
# Offense count: 12
78+
Style/ClassVars:
79+
Enabled: false
80+
81+
# Offense count: 5
82+
# Cop supports --auto-correct.
83+
Style/ColonMethodCall:
84+
Enabled: false
85+
86+
# Offense count: 32
87+
Style/Documentation:
88+
Enabled: false
89+
90+
# Offense count: 20
91+
# Configuration parameters: MinBodyLength.
92+
Style/GuardClause:
93+
Enabled: false
94+
95+
# Offense count: 84
96+
# Cop supports --auto-correct.
97+
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
98+
Style/HashSyntax:
99+
Enabled: false
100+
101+
# Offense count: 6
102+
# Cop supports --auto-correct.
103+
# Configuration parameters: MaxLineLength.
104+
Style/IfUnlessModifier:
105+
Enabled: false
106+
107+
# Offense count: 2
108+
# Cop supports --auto-correct.
109+
Style/Lambda:
110+
Enabled: false
111+
112+
# Offense count: 49
113+
# Cop supports --auto-correct.
114+
Style/LineEndConcatenation:
115+
Enabled: false
116+
117+
# Offense count: 2
118+
# Configuration parameters: EnforcedStyle, SupportedStyles.
119+
Style/MethodName:
120+
Enabled: false
121+
122+
# Offense count: 10
123+
# Cop supports --auto-correct.
124+
Style/MultilineBlockLayout:
125+
Enabled: false
126+
127+
# Offense count: 3
128+
Style/MultilineTernaryOperator:
129+
Enabled: false
130+
131+
# Offense count: 1
132+
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
133+
Style/Next:
134+
Enabled: false
135+
136+
# Offense count: 6
137+
# Cop supports --auto-correct.
138+
Style/Not:
139+
Enabled: false
140+
141+
# Offense count: 2
142+
# Cop supports --auto-correct.
143+
Style/NumericLiterals:
144+
MinDigits: 6
145+
146+
# Offense count: 5
147+
# Cop supports --auto-correct.
148+
Style/PerlBackrefs:
149+
Enabled: false
150+
151+
# Offense count: 1
152+
# Configuration parameters: EnforcedStyle, SupportedStyles.
153+
Style/RaiseArgs:
154+
Enabled: false
155+
156+
# Offense count: 1
157+
# Cop supports --auto-correct.
158+
# Configuration parameters: AllowMultipleReturnValues.
159+
Style/RedundantReturn:
160+
Enabled: false
161+
162+
# Offense count: 2
163+
# Cop supports --auto-correct.
164+
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
165+
Style/RegexpLiteral:
166+
Enabled: false
167+
168+
# Offense count: 5
169+
# Cop supports --auto-correct.
170+
# Configuration parameters: AllowAsExpressionSeparator.
171+
Style/Semicolon:
172+
Enabled: false
173+
174+
# Offense count: 1
175+
# Cop supports --auto-correct.
176+
# Configuration parameters: EnforcedStyle, SupportedStyles.
177+
Style/SignalException:
178+
Enabled: false
179+
180+
# Offense count: 16
181+
# Cop supports --auto-correct.
182+
Style/SpecialGlobalVars:
183+
Enabled: false
184+
185+
# Offense count: 75
186+
# Cop supports --auto-correct.
187+
# Configuration parameters: EnforcedStyle, SupportedStyles.
188+
Style/StringLiterals:
189+
Enabled: false
190+
191+
# Offense count: 2
192+
# Cop supports --auto-correct.
193+
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
194+
Style/TrailingComma:
195+
Enabled: false
196+
197+
# Offense count: 1
198+
Style/UnlessElse:
199+
Enabled: false
200+
201+
# Offense count: 3
202+
# Configuration parameters: EnforcedStyle, SupportedStyles.
203+
Style/VariableName:
204+
Enabled: false
205+
206+
# Offense count: 7
207+
# Cop supports --auto-correct.
208+
# Configuration parameters: WordRegex.
209+
Style/WordArray:
210+
MinSize: 6

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,24 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [1.0.0] - 2015-08-28
6+
### Added
7+
- Added README-maintainers.md
8+
9+
### Fixed
10+
- Several cases where providers would log an error message on receiving invalid input but would not actually raise an exception.
11+
- Ospf router-id default processing.
12+
- Added dotted-decimal munging for area in resource_cisco_interface_ospf
13+
- Modified template placeholder names to meet lint reqs
14+
- cisco_interface_ospf fix for area property when Fixnum is used
15+
- cisco_ospf idempotency fix
16+
- Moved misc READMEs to /docs
17+
518
## [0.9.0] - 2015-06-22
619
### Added
7-
- Initial release of cisco-ciscolib_nxos cookbook for chef, supporting Cisco NX-OS software release 7.0(3)I2(1) on Cisco Nexus switch platforms: N95xx, N93xx, N30xx and N31xx.
20+
- Initial release of cisco-cookbook for chef, supporting Cisco NX-OS software release 7.0(3)I2(1) on Cisco Nexus switch platforms: N95xx, N93xx, N30xx and N31xx.
821
- Please note: 0.9.0 is an EFT pre-release for a limited audience with access to NX-OS 7.0(3)I2(1). Additional code changes may occur in 0.9.x prior to the final 1.0.0 release.
922

23+
[unreleased]: https://github.com/cisco/cisco-network-chef-cookbook/compare/master...develop
24+
[1.0.0]: https://github.com/cisco/cisco-network-chef-cookbook/compare/v1.0.0...v0.9.0
25+

CONTRIBUTING.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# How to contribute
2+
Cisco Network Elements support a rich set of features to make network robust, efficient and secure. This project enables Cisco Network Elements to be managed by Chef by defining a set of resource types and providers. This set is expected to grow with contributions from Cisco, Chef Inc and third-party alike. Contributions to this project are welcome. To ensure code quality, contributers will be requested to follow a few guidelines.
3+
4+
## Getting Started
5+
6+
* Create a [GitHub account](https://github.com/signup/free)
7+
* Create a [cisco.com](http://cisco.com) account if you need access to a Network Simulator to test your code.
8+
9+
## Making Changes
10+
11+
* Fork the repository
12+
* Pull a branch under the "**develop**" branch for your changes.
13+
* Follow all guidelines documented in [README-creating-resources-providers](https://github.com/cisco/cisco-network-chef-cookbook/README-creating-resources-providers.md)
14+
* Make changes in your branch.
15+
* Testing
16+
* Run all the tests to ensure there was no collateral damage to existing code.
17+
* Check for unnecessary whitespace with `git diff --check`
18+
* Run `rubocop` against all changed files. See [https://rubygems.org/gems/rubocop](https://rubygems.org/gems/rubocop)
19+
* Ensure that your commit messages clearly describe the problem you are trying to solve and the proposed solution.
20+
21+
## Submitting Changes
22+
23+
* All contributions you submit to this project are voluntary and subject to the terms of the Apache 2.0 license
24+
* Submit a pull request to the repository
25+
* A core team consisting of Cisco and Chef Inc employees will review your pull request and provide feedback.
26+
* After feedback has been given we expect responses within two weeks. After two weeks we may close the pull request if it isn't showing any activity.
27+
28+
# Additional Resources
29+
30+
* [General GitHub documentation](http://help.github.com/)
31+
* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
32+
* \#chef-hacking IRC channel on irc.freenode.org
33+
* [chef-dev mailing list](http://lists.chef.io/sympa/info/chef-dev)

0 commit comments

Comments
 (0)