Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • R resolvers-yang
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • labs
  • resolvers-yang
  • Issues
  • #1
Closed
Open
Created Sep 22, 2018 by Štěpán Balážik@sbalazikDeveloper

Rewrite `converter.py` with a parser using Augeas

We are using a configuration editing tool augeas in Deckard (for parsing rpl files) which provides the machinery to programatically read, create and create configuration files without the need for regex spaghetti. (http://augeas.net/)

Since unbound.conf structure seems pretty simple so I could write a lens (basically a regular grammar with some thing added for a possibility of two way conversion between a AST and plaintext). (This was actually suggested in Augeas' issue tracker https://github.com/hercules-team/augeas/issues/162).

The code would end up much nicer and sustainable since all the regex shenanigans would be neatly packed outside of the Python code.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking