networktocode / ntc-rosetta

The missing bridge between industry standard CLIs and YANG
https://ntc-rosetta.readthedocs.io/en/latest/index.html
Apache License 2.0
103 stars 23 forks source link

Rosetta Modularity and Authoring My Own Driver #44

Open brotherdust opened 4 years ago

brotherdust commented 4 years ago

This looks to be such a cool project! Thanks for making it.

I'd like to write my own driver for Mikrotik RouterOS. Looking over the directory structure, it seems like the drivers really aren't all that modular. There's multiple JunOS and IOS subdirectories in various locations. In other words, the directory structure is very tightly integrated into the code. To write a module, I'd have to spread the code out over these locations. Wouldn't it make more sense to have something like single subdirectory for each NOS one would want to support, then have parser.py and driver.py, and ancillary code in there?

I'm happy to contribute code to this project (assuming you want contributions), but the directory structure, and lack of documentation of what code goes where, makes it somewhat difficult to get a grasp on how things are supposed to work. It might seem obvious to the authors, but it's not to me. =)

Thank you for taking the time to consider this.