nanog mailing list archives
Re: JunOS config yacc grammar?
From: Tom Beecher <beecher () beecher cc>
Date: Mon, 21 Aug 2023 20:16:33 -0400
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.
Use the same cron jobs to save a copy as xml/json and pull the file off. On Mon, Aug 21, 2023 at 7:52 PM Lyndon Nerenberg (VE7TFX/VE6BBM) < lyndon () orthanc ca> wrote:
Nick Hilliard writes:No need to reinvent that wheel: root@foo> show configuration | display xml root@foo> show configuration | display jsonThat 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:
- JunOS config yacc grammar? Lyndon Nerenberg (VE7TFX/VE6BBM) (Aug 21)
- Re: JunOS config yacc grammar? Nick Hilliard (Aug 21)
- Re: JunOS config yacc grammar? Lyndon Nerenberg (VE7TFX/VE6BBM) (Aug 21)
- Re: JunOS config yacc grammar? Tom Beecher (Aug 21)
- Re: JunOS config yacc grammar? Diogo Montagner (Aug 22)
- Re: JunOS config yacc grammar? Lyndon Nerenberg (VE7TFX/VE6BBM) (Aug 21)
- Re: JunOS config yacc grammar? Saku Ytti (Aug 21)
- Re: JunOS config yacc grammar? Nick Hilliard (Aug 22)
- Message not available
- Re: JunOS config yacc grammar? Lyndon Nerenberg (VE7TFX/VE6BBM) (Aug 22)
- Re: JunOS config yacc grammar? Brent Jones (Aug 22)
- Re: JunOS config yacc grammar? Lyndon Nerenberg (VE7TFX/VE6BBM) (Aug 21)
- Re: JunOS config yacc grammar? Nick Hilliard (Aug 21)
- Re: JunOS config yacc grammar? Joe Snyder (Aug 22)
- Re: JunOS config yacc grammar? Grant Taylor via NANOG (Aug 22)
- Re: JunOS config yacc grammar? Christopher Morrow (Aug 24)
- Re: JunOS config yacc grammar? Justin H. (Aug 24)
