-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix For Loading Yaml File Content and Inline Hashes #271
base: develop
Are you sure you want to change the base?
Conversation
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.
We tested with the YAML as below and it works which was not working without Fix.
---
CONF: |-
feature grpc
feature grpc-tls
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.
Reviewed and tested the this fix, it works well.
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.
This works for me with yaml --- and ...
On the develop branch it errors out, and this fix processes the policy properly and the content of the policy is correct on the ndfc after deploy.
Related Issue(s)
Resolves #270
Related Collection Role
Related Data Model Element
Proposed Changes
The proposed changes strips the --- and ... of YAML files.
Additionally, the usage of Ansible's
to_nice_yaml
is removed as it's unnecessary.Test Notes
Tested with .cfg, .yml, and inline data.
Can discuss in standup.
Cisco NDFC Version
12.2.2
Checklist