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

Replaced the ndo modules current value with actual API response value (DCNE-185) #589

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

Conversation

sajagana
Copy link
Collaborator

Note:

Fixed the below NDO modules:

  • ndo_synce_interface_policy
  • ndo_vlan_pool
  • ndo_dhcp_option_policy
  • ndo_dhcp_relay_policy
  • ndo_l3_domain
  • ndo_physical_domain
  • ndo_route_map_policy_multicast

@sajagana sajagana force-pushed the 538_ndo_modules_current_value_fix branch from 8c27fc9 to 39d30ea Compare December 19, 2024 08:31
@github-actions github-actions bot changed the title Replaced the ndo modules current value with actual API response value Replaced the ndo modules current value with actual API response value (DCNE-185) Dec 19, 2024
plugins/module_utils/mso.py Outdated Show resolved Hide resolved
plugins/modules/ndo_dhcp_option_policy.py Show resolved Hide resolved
plugins/modules/ndo_dhcp_option_policy.py Show resolved Hide resolved
tests/integration/targets/ndo_l3_domain/tasks/main.yml Outdated Show resolved Hide resolved
@sajagana sajagana force-pushed the 538_ndo_modules_current_value_fix branch from 2240b6b to 5943cf6 Compare December 20, 2024 17:30
@sajagana sajagana requested a review from akinross December 20, 2024 17:33
shrsr
shrsr previously approved these changes Jan 7, 2025
Copy link
Collaborator

@shrsr shrsr left a comment

Choose a reason for hiding this comment

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

LGTM

gmicol
gmicol previously approved these changes Jan 8, 2025
Copy link
Collaborator

@gmicol gmicol left a comment

Choose a reason for hiding this comment

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

LGTM

anvitha-jain
anvitha-jain previously approved these changes Jan 9, 2025
samiib
samiib previously approved these changes Jan 9, 2025
Copy link
Collaborator

@samiib samiib left a comment

Choose a reason for hiding this comment

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

LGTM

plugins/modules/ndo_l3_domain.py Outdated Show resolved Hide resolved
response = mso.request(mso_template.templates_path, method="POST", data=payload)
payload["templateId"] = response.get("templateId")
mso.existing = mso.request(mso_template.templates_path, method="POST", data=payload)
payload["templateId"] = mso.existing.get("templateId")
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you check the response for tenant and its corresponding id in the response also?

@sajagana sajagana dismissed stale reviews from samiib, anvitha-jain, gmicol, and shrsr via 076d777 January 29, 2025 15:10
… response value and fixed the output value of the ndo_route_map_policy_multicast and ndo_vlan_pool modules
@sajagana sajagana force-pushed the 538_ndo_modules_current_value_fix branch from 076d777 to 1590fde Compare January 29, 2025 16:36
@sajagana sajagana force-pushed the 538_ndo_modules_current_value_fix branch from 1590fde to 284f9f2 Compare January 29, 2025 17:05
Copy link
Collaborator

@gmicol gmicol left a comment

Choose a reason for hiding this comment

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

Sanity's failing on compiling for Python 2.7

@sajagana sajagana requested a review from gmicol January 31, 2025 09:44
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.

Update the existing NDO modules to return the actual current value based on the API response (DCNE-185)
6 participants