Skip to content
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

eos_static_route DI module #32587

Merged
merged 4 commits into from Nov 7, 2017
Merged

Conversation

trishnaguha
Copy link
Member

@trishnaguha trishnaguha commented Nov 6, 2017

Signed-off-by: Trishna Guha trishnaguha17@gmail.com

SUMMARY

eos_static_route DI module #31299
Integration test

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

module_utils/network_common
modules/network/eos/eos_static_route
test/integration/targets/eos_static_route/*
test/integration/targets/net_static_route/*

ANSIBLE VERSION
2.5.0

@trishnaguha trishnaguha added the networking Network category label Nov 6, 2017
@trishnaguha trishnaguha added this to the 2.5.0 milestone Nov 6, 2017
@ansibot
Copy link
Contributor

ansibot commented Nov 6, 2017

@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 community_review In order to be merged, this PR must follow the community review workflow. feature_pull_request module This issue/PR relates to a module. new_module This PR includes a new module. support:community This issue/PR relates to code supported by the Ansible community. labels Nov 6, 2017
@trishnaguha trishnaguha added support:network This issue/PR relates to code supported by the Ansible Network Team. and removed support:community This issue/PR relates to code supported by the Ansible community. community_review In order to be merged, this PR must follow the community review workflow. labels Nov 6, 2017
@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. support:community This issue/PR relates to code supported by the Ansible community. and removed support:network This issue/PR relates to code supported by the Ansible Network Team. labels Nov 6, 2017
@ansibot ansibot added the test This PR relates to tests. label Nov 6, 2017
@ansibot
Copy link
Contributor

ansibot commented Nov 6, 2017

@@ -0,0 +1,102 @@
---
- name: setup - remove config used in test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are same tests as above cli/basic.yaml?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah same test. but for platform agnostic net_static_route.

supports_check_mode=True)

warnings = list()
check_args(module, warnings)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verifying here that IP address and prefix are in correct format would be good.
Look for APIs:
socket.inet_pton(socket.AF_INET, address) and socket.inet_pton(socket.AF_INET6, address)

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Nov 7, 2017
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
@trishnaguha trishnaguha force-pushed the eos_static_route branch 2 times, most recently from 8d03c43 to a9cccb2 Compare November 7, 2017 10:08
@trishnaguha trishnaguha added support:network This issue/PR relates to code supported by the Ansible Network Team. and removed support:community This issue/PR relates to code supported by the Ansible community. labels Nov 7, 2017
@ansibot ansibot added support:community This issue/PR relates to code supported by the Ansible community. and removed support:network This issue/PR relates to code supported by the Ansible Network Team. labels Nov 7, 2017
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Nov 7, 2017
@ansible ansible deleted a comment from ansibot Nov 7, 2017
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Nov 7, 2017
@trishnaguha trishnaguha merged commit 48ab1a1 into ansible:devel Nov 7, 2017
@trishnaguha trishnaguha deleted the eos_static_route branch November 7, 2017 11:13
@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_pull_request labels Mar 5, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.5 This issue/PR affects Ansible v2.5 feature This issue/PR relates to a feature request. module_utils/ module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. networking Network category new_module This PR includes a new module. support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants