-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring of cnos_interface module like what followed by other vendors #49927
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansibot
added
affects_2.8
This issue/PR affects Ansible v2.8
core_review
In order to be merged, this PR must follow the core review workflow.
feature
This issue/PR relates to a feature request.
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
networking
Network category
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
test
This PR relates to tests.
labels
Dec 14, 2018
The test
The test
|
ansibot
added
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
core_review
In order to be merged, this PR must follow the core review workflow.
needs_ci
This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI.
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
and removed
core_review
In order to be merged, this PR must follow the core review workflow.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
needs_ci
This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI.
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
labels
Dec 14, 2018
@amuraleedhar this PR contains the following merge commits: Please rebase your branch to remove these commits. |
ansibot
added
merge_commit
This PR contains at least one merge commit. Please resolve!
needs_rebase
https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html
labels
Dec 14, 2018
amuraleedhar
force-pushed
the
cnos-refactor-interface
branch
from
December 14, 2018 16:14
13e1a96
to
beca8b4
Compare
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
and removed
merge_commit
This PR contains at least one merge commit. Please resolve!
needs_rebase
https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Dec 14, 2018
ansibot
added
needs_rebase
https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
core_review
In order to be merged, this PR must follow the core review workflow.
labels
Dec 19, 2018
amuraleedhar
force-pushed
the
cnos-refactor-interface
branch
from
December 19, 2018 11:58
dd02dc4
to
1e9e9ba
Compare
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
and removed
needs_rebase
https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Dec 19, 2018
kbreit
pushed a commit
to kbreit/ansible
that referenced
this pull request
Jan 11, 2019
…ors (ansible#49927) * Refactoring of cnos_interface module like what followed by other vendors * To remove cnos-interface from E326 validation ignore list * Effect of default parameters impacted UT
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.8
This issue/PR affects Ansible v2.8
cisco
Cisco technologies
core_review
In order to be merged, this PR must follow the core review workflow.
feature
This issue/PR relates to a feature request.
ios
Cisco IOS community
module
This issue/PR relates to a module.
networking
Network category
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
test
This PR relates to tests.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Refactoring the cnos_interface , a function similiar in line to ios, eos etc.
ISSUE TYPE
COMPONENT NAME
new file: test/integration/targets/cnos_interface/aliases
new file: test/integration/targets/cnos_interface/cnos_interface_sample_hosts
new file: test/integration/targets/cnos_interface/defaults/main.yaml
new file: test/integration/targets/cnos_interface/tasks/cli.yaml
new file: test/integration/targets/cnos_interface/tasks/main.yaml
new file: test/integration/targets/cnos_interface/tests/cli/basic.yaml
new file: test/integration/targets/cnos_interface/tests/cli/intent.yaml
new file: test/integration/targets/cnos_interface/vars/main.yaml
new file: test/units/modules/network/cnos/test_cnos_interface.py
modified: test/units/modules/network/cnos/fixtures/cnos_config_config.cfg
modified: lib/ansible/module_utils/network/cnos/cnos.py
modified: lib/ansible/modules/network/cnos/cnos_interface.py
deleted: test/units/modules/network/cnos/fixtures/cnos_ethernet_config.cfg
deleted: test/units/modules/network/cnos/test_cnos_ethernet.py
deleted: test/integration/targets/cnos_ethernet/README.md
deleted: test/integration/targets/cnos_ethernet/tasks/main.yml
deleted: test/integration/targets/cnos_ethernet/vars/main.yml
deleted: test/integration/targets/cnos_ethernet/aliases
deleted: test/integration/targets/cnos_ethernet/cnos_ethernet_sample_hosts
ANSIBLE VERSION
ansible 2.8.0.dev0 (devel e2b9c36) last updated 2018/10/12 13:58:41 (GMT +550)
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/ansible/sheru/ansible/lib/ansible
executable location = /home/ansible/sheru/ansible/bin/ansible
python version = 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC 4.8.4]
ADDITIONAL INFORMATION
Unit Test and Integration tests are also added which are succesfully tested with CNOS G8272 with image version 10.8.1