-
Notifications
You must be signed in to change notification settings - Fork 39
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
Module dcnm_vrf clears unsupported VRF Template properties #207
Comments
@mikewiebe it is customized template which we don't support as now, it is a work around |
@mikewiebe. As @dsx1123 mentioned, I am currently working with customized templates. |
Hi @jgomezve I think this is a very interesting approach. We have considered this in the past also based on |
Hi @mikewiebe , When I am deploying a vrf I am unable to set route_map_out, this is a default configuration parameter but I also can enable a custom parameter that is apart of my custom VRF Extension template, is this expected and is this issue related to what I am experiencing? Here is my playbook task:
|
@steele-ntwrk "route_map_out" parameter is not supported in vrf lite config as of now. and the behavior you are seeing is expected. We will try to support it in a future release. |
Community Note
Ansible Version and collection version
DCNM version
Affected module(s)
Ansible Playbook
Debug Output
The module
dcnm_rest
is being used to create/update a VRF, and then the moduledcnm_vrf
is used to deploy/ attach the VRF to the switchesThe playbook is executed without any problem however most of the VRF attributes, the ones not supported by the module, are cleared
Expected Behavior
Properties not supported by the module should be left untouched
Actual Behavior
Properties such as MTU, Tag, Max BGP paths etc are cleared from the VRF config
Steps to Reproduce
dcnm_rest
moduleReferences
The root cause seem to be a "limitation" in the NDFC Rest API. I have manually created a VRF and then updated it via Postman with the payload below. The outcome is the same; VRF attributes not listed in
vrfTemplateConfig
are clearedThe keys in the
vrfTemplateConfig
are the ones that seem to be used by the module. See:ansible-dcnm/plugins/modules/dcnm_vrf.py
Line 1651 in 851149a
Suggested workaround
What if the module
dcnm_vrf
accepts a dictionary as an input, and the module builds the keyvrfTemplateConfig
based on that input? Example:We could also set a flag that forces the module to only deploy the VRFs. In that way the module
dcnm_rest
is used to create/update the VRF and the moduledcnm_vrf
is used only to deploy the VRFs on the switchesThe text was updated successfully, but these errors were encountered: