Re: YANG daemeon for Linux
What you want is probably sysrepo https://github.com/sysrepo/sysrepo /Eric On 08/09/2018 03:56 AM, Marcus Leske wrote: Yes Rob, i’d like to do what you described: use netconf and yang to provision the quagga BGP implementation. Can you describe work arounds? If any. Can i convert a bgp yang model to json/yaml and have some other app consume it? Thanks On Sunday, July 29, 2018, Rob Shakir wrote: Could you define "render"? If you're looking to take a YANG model (which one?) and configure Linux kernel networking features with it, I can't recall having seen something that does this. I have been working on a side project (which I'm hoping to bring to a hackathon) to take Linux networking and map it to OpenConfig - but this is maexceptionally embryonic. If you're looking for ways to manipulate data instances for YANG-modelled schemas on Linux, here are some options (full disclosure: I lead the development of two of them): - ygot - produces Go structs, or Protobufs that correspond to a YANG model - github.com/openconfig/ygot - pyangbind - produces Python classes that correspond to a YANG model - github.com/robshakir/pyangbind - ydk (Cisco) - produces Python and C++ APIs, more centred around device interaction (https://developer.cisco.com/site/ydk/) Cheers, r. On Sat, 28 Jul 2018 at 03:54 Vincent Bernat wrote: ❦ 27 juillet 2018 12:23 -0700, Karl Jørn : Looking for an agent on Linux that will render YANG models, so I can provision networking on Linux. Maybe looking at this one: http://yuma123.org/wiki/index.php/Yuma_netconfd_Manual -- Make sure your code "does nothing" gracefully. - The Elements of Programming Style (Kernighan & Plauger)
Re: YANG daemeon for Linux
Yes Rob, i’d like to do what you described: use netconf and yang to provision the quagga BGP implementation. Can you describe work arounds? If any. Can i convert a bgp yang model to json/yaml and have some other app consume it? Thanks On Sunday, July 29, 2018, Rob Shakir wrote: > Could you define "render"? If you're looking to take a YANG model (which > one?) and configure Linux kernel networking features with it, I can't > recall having seen something that does this. I have been working on a side > project (which I'm hoping to bring to a hackathon) to take Linux networking > and map it to OpenConfig - but this is maexceptionally embryonic. > > If you're looking for ways to manipulate data instances for YANG-modelled > schemas on Linux, here are some options (full disclosure: I lead the > development of two of them): > >- ygot - produces Go structs, or Protobufs that correspond to a YANG >model - github.com/openconfig/ygot >- pyangbind - produces Python classes that correspond to a YANG model - >github.com/robshakir/pyangbind >- ydk (Cisco) - produces Python and C++ APIs, more centred around device >interaction (https://developer.cisco.com/site/ydk/) > > Cheers, > r. > > On Sat, 28 Jul 2018 at 03:54 Vincent Bernat wrote: > > > ❦ 27 juillet 2018 12:23 -0700, Karl Jørn : > > > > > Looking for an agent on Linux that will render YANG models, so I can > > > provision networking on Linux. > > > > Maybe looking at this one: > > http://yuma123.org/wiki/index.php/Yuma_netconfd_Manual > > -- > > Make sure your code "does nothing" gracefully. > > - The Elements of Programming Style (Kernighan & Plauger) > > >
Re: YANG daemeon for Linux
On Fri, Jul 27, 2018 at 01:18:47PM -1000, David Cornejo wrote: > > I am unaware of any open source software that implements a complete > solution for parsing the YANG into a model, allowing the manipulation of > that models data, and configuring the system to match that model. > pyangbind (https://github.com/robshakir/pyangbind) can be used to generate Python classes that you can bind data to. This isn't Linux-specific, but it is possible to input a YANG model, and some external data, and produce a usable Python data structure. napalm-yang (https://github.com/napalm-automation/napalm-yang) is an example of doing this via NAPALM output via profiles that handle the parsing to/from device native data structures, with differing levels of support: https://napalm-yang.readthedocs.io/en/latest/root/supported_models/index.html#profiles -- Brandon Ewing (nicot...@warningg.com) pgpgnOqNxvXWD.pgp Description: PGP signature
Re: YANG daemeon for Linux
YANG is a data modelling language and not a method for configuring Linux, though it can be used as a part of one. I am unaware of any open source software that implements a complete solution for parsing the YANG into a model, allowing the manipulation of that models data, and configuring the system to match that model. clixon (www.clicon.org), and it's companion CLI tool cligen, are toolkits to provide a parts of the solution, but they require a large amount of code to be complete. clixon parses the YANG into an XML schema and provides for the manipulation of the data via RESTCONF/NETCONF. clixon also has hooks to call routines to configure the system according to the model data, but not the actual calls. the companion cligen allows you to define a CLI language to manipulate the data, but a language is not provided. disclaimer: I am a contributor to clixon/cligen, the maintainer of its FreeBSD port, and a user of this software in a commercial product. On Fri, Jul 27, 2018 at 9:24 AM Karl Jørn wrote: > Looking for an agent on Linux that will render YANG models, so I can > provision networking on Linux. > > Danke, > Karl > > On Fri, Jul 27, 2018 at 11:25 AM, Wes Felter wrote: > > > On 7/20/18 2:30 PM, Karl Jørn wrote: > > > > Is there a YANG daemeon for Linux ? If yes, can any one please share > their > >> experiences ? > >> > > > > It's not clear what problem you're trying to solve, but > > http://www.clicon.org/ might do what you want. > > > > > -- Kailua, Hawaiʻi US +1 (808) 728-3050 UK +44 (020) 3286 2808
Re: YANG daemeon for Linux
Could you define "render"? If you're looking to take a YANG model (which one?) and configure Linux kernel networking features with it, I can't recall having seen something that does this. I have been working on a side project (which I'm hoping to bring to a hackathon) to take Linux networking and map it to OpenConfig - but this is maexceptionally embryonic. If you're looking for ways to manipulate data instances for YANG-modelled schemas on Linux, here are some options (full disclosure: I lead the development of two of them): - ygot - produces Go structs, or Protobufs that correspond to a YANG model - github.com/openconfig/ygot - pyangbind - produces Python classes that correspond to a YANG model - github.com/robshakir/pyangbind - ydk (Cisco) - produces Python and C++ APIs, more centred around device interaction (https://developer.cisco.com/site/ydk/) Cheers, r. On Sat, 28 Jul 2018 at 03:54 Vincent Bernat wrote: > ❦ 27 juillet 2018 12:23 -0700, Karl Jørn : > > > Looking for an agent on Linux that will render YANG models, so I can > > provision networking on Linux. > > Maybe looking at this one: > http://yuma123.org/wiki/index.php/Yuma_netconfd_Manual > -- > Make sure your code "does nothing" gracefully. > - The Elements of Programming Style (Kernighan & Plauger) >
Re: YANG daemeon for Linux
❦ 27 juillet 2018 12:23 -0700, Karl Jørn : > Looking for an agent on Linux that will render YANG models, so I can > provision networking on Linux. Maybe looking at this one: http://yuma123.org/wiki/index.php/Yuma_netconfd_Manual -- Make sure your code "does nothing" gracefully. - The Elements of Programming Style (Kernighan & Plauger)
Re: YANG daemeon for Linux
Looking for an agent on Linux that will render YANG models, so I can provision networking on Linux. Danke, Karl On Fri, Jul 27, 2018 at 11:25 AM, Wes Felter wrote: > On 7/20/18 2:30 PM, Karl Jørn wrote: > > Is there a YANG daemeon for Linux ? If yes, can any one please share their >> experiences ? >> > > It's not clear what problem you're trying to solve, but > http://www.clicon.org/ might do what you want. > >
Re: YANG daemeon for Linux
On 7/20/18 2:30 PM, Karl Jørn wrote: Is there a YANG daemeon for Linux ? If yes, can any one please share their experiences ? It's not clear what problem you're trying to solve, but http://www.clicon.org/ might do what you want.
Re: 2nd try: YANG daemeon for Linux
Anyone ? Found this but i am not sure if this is going to go public or not : https://packetpushers.net/new-network-os-startup-arrcus-targets-whitebox-switching-routing/ Danke, Karl On Fri, Jul 20, 2018 at 12:30 PM, Karl Jørn wrote: > Hi > > Is there a YANG daemeon for Linux ? If yes, can any one please share their > experiences ? > > Danke, > Karl >
YANG daemeon for Linux
Hi Is there a YANG daemeon for Linux ? If yes, can any one please share their experiences ? Danke, Karl