-
Notifications
You must be signed in to change notification settings - Fork 101
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
enhancement for node_mgmt_epg_to_contract (DCNE-87) #658
base: master
Are you sure you want to change the base?
Conversation
9010dbf
to
820f4cc
Compare
820f4cc
to
2873077
Compare
…ontract.url does not exist remain
# Test code for the ACI modules | ||
# Copyright: (c) 2024, Faiz Mohammad (@faizmoh) <[email protected]> | ||
|
||
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) |
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.
can you convert to this format: https://github.com/CiscoDevNet/ansible-aci/blob/master/tests/integration/targets/aci_esg_to_contract/tasks/main.yml
state: present | ||
|
||
# CREATE INB | ||
- name: bind inb contract to inband epg - check mode works |
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.
assert defaults and test all attributes can be updates that can be updated
…e PR. Shall test to merge Root and SubClass-1 into a single Root class now
2) fixed some linting 3) modified the query assertations accordingly in test file All checks passed in test file. PLAY RECAP ********************************************************************* azure_cloud : ok=8 changed=0 unreachable=0 failed=0 skipped=51 rescued=0 ignored=0 cn-dmz-apic-m1-02-v42 : ok=7 changed=0 unreachable=0 failed=0 skipped=52 rescued=0 ignored=0 cn-dmz-apic-m1-03-v52 : ok=55 changed=24 unreachable=0 failed=0 skipped=4 rescued=0 ignored=8 cn-dmz-apic-m1-04-v602h : ok=55 changed=24 unreachable=0 failed=0 skipped=4 rescued=0 ignored=8 Module ready for review
# target_filter={aci_name: contract} | ||
# ) | ||
root_class=dict( | ||
# aci_class="fvTenant", |
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.
same here, should we set to class mgmtMgmtP here?
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.
removed the commented code, but didn't understand what do you mean by setting the class to mgmtMgmtP
argument_spec.update(aci_annotation_spec()) | ||
argument_spec.update( | ||
contract_type=dict(type="str", choices=["consumer", "provider", "taboo", "interface"], required=True), | ||
epg_type=dict( |
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.
missing in docs
aci_name = "tnVzOOBBrCPName" | ||
class_config = {"prio": priority, aci_name: contract} | ||
|
||
class_Map = {"in_band": [dict(epg_class="mgmtInB", epg_rn="inb-{0}")], "out_of_band": [dict(epg_class="mgmtOoB", epg_rn="oob-{0}")]} |
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.
please move this to constants file
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.
why insert a list of dict and not just a dict as value?
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.
Changed.
Will Update once moved to constants.py
-) Added node_mgmt_epg_to_contract module
-) Test.yml still pending, working on it.
DCNE-87