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

enhancement for node_mgmt_epg_to_contract (DCNE-87) #658

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Ziaf007
Copy link

@Ziaf007 Ziaf007 commented May 21, 2024

-) Added node_mgmt_epg_to_contract module
-) Test.yml still pending, working on it.

DCNE-87

@github-actions github-actions bot changed the title enhancement for node_mgmt_epg_to_contract enhancement for node_mgmt_epg_to_contract (DCNE-87) Oct 18, 2024
@Ziaf007 Ziaf007 force-pushed the node_mgmt_epg_to_contract branch from 9010dbf to 820f4cc Compare October 18, 2024 13:35
@Ziaf007 Ziaf007 force-pushed the node_mgmt_epg_to_contract branch from 820f4cc to 2873077 Compare October 24, 2024 14:15
@akinross akinross requested a review from samiib December 16, 2024 13:52
# 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)
Copy link
Collaborator

Choose a reason for hiding this comment

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

state: present

# CREATE INB
- name: bind inb contract to inband epg - check mode works
Copy link
Collaborator

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",
Copy link
Collaborator

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?

Copy link
Author

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(
Copy link
Collaborator

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}")]}
Copy link
Collaborator

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

Copy link
Collaborator

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?

Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aci_epg_to_contract module does not work for associating contracts to Node mgmt EPGs (DCNE-87)
3 participants