JunOS config yacc grammar?

Nick Hilliard nick at foobar.org
Mon Aug 21 22:11:06 UTC 2023


Lyndon Nerenberg (VE7TFX/VE6BBM) wrote on 21/08/2023 22:14:
> Any chance somebody out there has a yacc grammar that will parse
> a Juniper config files?  My immediate interest involves v19.X on
> our EX4300s, but anything in the ballpark would save me having to
> write one from scratch.

No need to reinvent that wheel:

root at foo> show configuration | display xml
root at foo> show configuration | display json

... then slurp into an ingestion engine in your favourite language.

Nick


More information about the NANOG mailing list