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

Fix For Loading Yaml File Content and Inline Hashes #271

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

mtarking
Copy link
Collaborator

Related Issue(s)

Resolves #270

Related Collection Role

  • cisco.nac_dc_vxlan.validate
  • cisco.nac_dc_vxlan.dtc.create
  • cisco.nac_dc_vxlan.dtc.deploy
  • cisco.nac_dc_vxlan.dtc.remove
  • other

Related Data Model Element

  • vxlan.global
  • vxlan.topology
  • vxlan.underlay
  • vxlan.overlay_services
  • vxlan.overlay_extensions
  • vxlan.policy
  • defaults.vxlan
  • other

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

  • Latest commit is rebased from develop with merge conflicts resolved
  • New or updates to documentation has been made accordingly
  • Assigned the proper reviewers

@mtarking mtarking self-assigned this Jan 28, 2025
@mtarking mtarking added the wip work-in-progress label Jan 28, 2025
Copy link
Collaborator

@devegupt devegupt left a 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

@mtarking mtarking added ready for review PR Ready for Review and removed wip work-in-progress labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review PR Ready for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bring Your Own Policy Loads Beginning and End of YAML Files
2 participants