nanog mailing list archives

Re: JunOS config yacc grammar?


From: Christopher Morrow <morrowc.lists () gmail com>
Date: Thu, 24 Aug 2023 15:01:16 -0400

On Thu, Aug 24, 2023 at 11:45 AM Warren Kumari <warren () kumari net> wrote:
from: me
this is a common problem (or is common when I look at things, perhaps I'm looking wrongly, but...)
I'd love to have something that parsed all of my device type configs and output the results into a
'database' that i could then ask questions of like:
"Hey, what NTP servers are configured on all devices?"
"Hey, which devices have this <access-list/firewall/user> configured on them?"



Isn't this YANG/NETCONF, and squish it all into DB/directory full of files?


yup, sort of... I think the yang parts are still not 100% there, and
also then I'd need to do the
1 thing I've been avoiding (aside from printing from a unix machine)
so far: "learn yang things" :)

Basically a more standardized format for representing device configurations / states?

yup! really any way that would be relatively steady over time to go from:
  "router config on router over there ->"
to:
  "now in some useful way stored in a 'database'"

was/is my goal... or one goal of the many goals I attempt to get to a
solution for every once in a while :)


Current thread: