nanog mailing list archives

Re: JunOS config yacc grammar?


From: "Lyndon Nerenberg (VE7TFX/VE6BBM)" <lyndon () orthanc ca>
Date: Mon, 21 Aug 2023 16:50:54 -0700

Nick Hilliard writes:

No need to reinvent that wheel:

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

That doesn't quite work for this scenario.  It would mean ssh-ing
to the switch to grab it, and that's pretty locked down.  We already
have cron jobs running on the switches that tftp the config file
to a server, and I'd prefer to leverage off that.

Also, the yacc parser would let me do some validation checks
before we push new configs.

--lyndon


Current thread: