JunOS config yacc grammar?
Tom Beecher
beecher at beecher.cc
Tue Aug 22 00:16:33 UTC 2023
>
> 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 at orthanc.ca> wrote:
> Nick Hilliard writes:
>
> > No need to reinvent that wheel:
> >
> > root at foo> show configuration | display xml
> > root at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nanog.org/pipermail/nanog/attachments/20230821/75ea4784/attachment.html>
More information about the NANOG
mailing list