-
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
Replaced the ndo modules current value with actual API response value (DCNE-185) #589
base: master
Are you sure you want to change the base?
Replaced the ndo modules current value with actual API response value (DCNE-185) #589
Conversation
… response value and fixed the output value of the ndo_route_map_policy_multicast and ndo_vlan_pool modules
8c27fc9
to
39d30ea
Compare
@@ -85,20 +83,20 @@ | |||
- cm_create_new_l3_domain is changed | |||
- cm_create_new_l3_domain.previous == {} | |||
- cm_create_new_l3_domain.current.name == "ansible_test_l3_domain" | |||
- cm_create_new_l3_domain.current.pool == "ansible_test_vlan_pool_1" | |||
- cm_create_new_l3_domain.current.pool != "" |
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.
so we only return the pool uuid?
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.
Yes, let me insert the name attribute into the output.
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.
But how do we compare this to the input of name? or should we expose both uuid and pool name? in output do we only want to have uuid returned, as this from normal input is not something a user knows unless the use a query on the vlan pool object or create the vlan pool via ansible and refer to the returned output.
…current portion of the ndo_l3_domain module
2240b6b
to
5943cf6
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
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
@@ -186,15 +179,14 @@ def main(): | |||
|
|||
if pool and match.details.get("pool") != pool: | |||
ops.append(dict(op="replace", path="{0}/{1}/pool".format(path, match.index), value=mso_template.get_vlan_pool_uuid(pool))) | |||
match.details["pool"] = pool | |||
match.details["pool"] = mso_template.get_vlan_pool_uuid(pool) |
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.
think same issue is happening for physical domain
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") |
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 check the response for tenant and its corresponding id in the response also?
Note:
Fixed the below NDO modules: