nanog mailing list archives

Re: JunOS config yacc grammar?


From: Nick Hilliard <nick () foobar org>
Date: Mon, 21 Aug 2023 23:11:06 +0100

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@foo> show configuration | display xml
root@foo> show configuration | display json

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

Nick


Current thread: