-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add a new module to manage Port Channel Interfaces in Fabric Resource Policies Template. (DCNE-52) #539
base: master
Are you sure you want to change the base?
Conversation
6a28890
to
5016d36
Compare
To all reviewers, the test is not complete yet as I am waiting for the ndo_interface_setting module to be merged. Please review accordingly. thanks! |
8a0ef1a
to
7f88d0a
Compare
tests/integration/targets/ndo_port_channel_interface/tasks/main.yml
Outdated
Show resolved
Hide resolved
0af57d3
to
d5a18f8
Compare
027e458
to
eb8cf29
Compare
eb8cf29
to
108465f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #539 +/- ##
==========================================
- Coverage 80.85% 80.31% -0.54%
==========================================
Files 63 62 -1
Lines 6058 5999 -59
Branches 1594 1581 -13
==========================================
- Hits 4898 4818 -80
- Misses 806 827 +21
Partials 354 354
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
a8b89a9
to
2a3f188
Compare
@@ -318,6 +318,19 @@ def write_file(module, url, dest, content, resp, tmpsrc=None): | |||
os.remove(tmpsrc) | |||
|
|||
|
|||
def format_interface_descriptions(interface_descriptions, node=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we use this function in mso.py
? If not, move it to the module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we will be using it in three different modules, Physical, Port Channel and VPC interfaces. that's why it's currently in mso.py
as the default script to place our generic functions.
…gs to check valid interfaces and descriptions inputs.
… ndo_port_channel_interface.
…of interfaces for the test case of ndo_port_channel_interface.
…ookup_valid_interfaces function to mso.py from module_utils.
…bute. Add new function in module_utils/template to catch interface policy group uuid. Modify test case and Documentation.
…riptions for payload data. Modify Documentation and add more examples using uuid.
2a3f188
to
23b361d
Compare
ops.append(dict(op="replace", path="{0}/{1}/name".format(path, match.index), value=name)) | ||
proposed_payload["name"] = name | ||
|
||
if description is not None and mso.existing.get("description") != description: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sajagana wrote a function for this, asked him to do a separate PR for it so we can rebase the open PRs on it. Shoudl we do this?
https://github.com/CiscoDevNet/ansible-mso/pull/563/files#diff-f3e3720de5c754cfeb714aa1ed0f9d0a1a043f8c0005944d58565decefe1817bR31
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, let's do it like this. will rebase on this PR once merged.
74c318d
to
eebecde
Compare
eebecde
to
4cd31f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…rt_channel_interface.py module to be consistent with future modules.
4cd31f2
to
db77679
Compare
resolves #466
New Modules Added: