Community discussions

MikroTik App
 
robertpenz
Member Candidate
Member Candidate
Topic Author
Posts: 104
Joined: Mon Oct 10, 2011 8:41 am

pyNetinstall - Free and Open Source netInstall implementation for Flashing Mikrotik RouterBoards

Thu May 04, 2023 2:50 pm

Hi!

We're heavy using Mikrotiks in our environment and automation is very important for us. We're generating the configuration for our network equipment via scripts/templates from a source of truth system. To be able to integrate the Mikrotiks better in that workflow (which we use also for enterprise switch vendors), we've created pyNetinstall and are releasing it as OpenSource to the Mikrotik user community.

From the documentation:

pyNetinstall is meant as a component of a zero-touch deployment system. Using it, one can configure RouterBoards en masse easily. The plug-in system allows interfacing pyNetinstall with existing data center infrastructure management systems, uploading individual firmware and configuration per device based on MAC address, model type and serial number. It is possible to run pyNetinstall in a Container on a Routerboard itself, providing a self-contained, (nearly) zero-touch deployment station. Unlike the official tooling, pyNetinstall does not include DHCP and TFTP servers; these services should be handled by e.g. dnsmasq or the one included with RouterOS.

More on Github: https://github.com/dvtirol/pynetinstall
For running it within an RouterOS container see: https://github.com/dvtirol/pynetinstall ... outeros.md
And it is also listed on PyPi: https://pypi.org/project/pynetinstall/

We hope this software also helps other Mikrotik users, specially the ones, which deploy it in bigger environments!

Kind Regards,
Robert
Last edited by robertpenz on Fri May 05, 2023 1:49 pm, edited 2 times in total.
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1025
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: pyNetinstall - Free and Open Source netInstall implementation for Flashing Mikrotik RouterBoards

Thu May 04, 2023 4:01 pm

Nice, thank you! 🙏🏻
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: pyNetinstall - Free and Open Source netInstall implementation for Flashing Mikrotik RouterBoards

Thu May 04, 2023 4:38 pm

:shock: :!: :!: :!: :!:
 
benihelputech
just joined
Posts: 4
Joined: Sat Apr 22, 2023 12:43 am

Re: pyNetinstall - Free and Open Source netInstall implementation for Flashing Mikrotik RouterBoards

Fri May 05, 2023 2:04 am

Total noob question (sorry): Could this potentially be used to flash a lightweight Linux distro onto an arm-based routerBOARD? I just got in some CCR2216's and getting frustrated with the lack of features. It would be interesting to see alpine linux flashed onto it running FRR.
 
User avatar
jbl42
Member Candidate
Member Candidate
Posts: 214
Joined: Sun Jun 21, 2020 12:58 pm

Re: pyNetinstall - Free and Open Source netInstall implementation for Flashing Mikrotik RouterBoards

Fri May 05, 2023 3:39 am

Could this potentially be used to flash a lightweight Linux distro onto an arm-based routerBOARD?
No. RouterBOOT (Mikrotik bootloader) only boots up signed Mikrotik SW installed uing NPKs.
To boot a 3rd party Linux kernel, you need a modified RouterBOOT. See here for an example on how to install openwrt on RB5009:
This works for RB5009 as recent Linux kernels contain a driver for the RB5009 switch chip (DSA).

For CCR2216 you would also need a driver to access and configure the integrated switch chip, which is way more advanced and much more complicated than the one in RB5009. The CCR2216 switch chip also requires a lot of runtime configuration which is not documented in public and only available under NDA from Marvell.
Marvell in general is very closed. They make decent switch chips, but you even can't get a datasheet without signing an NDA.
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1025
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: pyNetinstall - Free and Open Source netInstall implementation for Flashing Mikrotik RouterBoards

Fri May 05, 2023 4:54 pm

Regarding Aldrin2 (98DX8525) and similar Marvell ASICs, they aren't that secretive, IMO. In fact, they are just as eager as any other manufacturer to make their drivers compatible with Linux in order to sell more silicone. Although much information isn't available to the public, as a customer, you can access all specifications, example code, and other resources on their extranet without any restrictions.

 
User avatar
CoMMyz
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Fri Dec 04, 2015 10:56 pm

Re: pyNetinstall - Free and Open Source netInstall implementation for Flashing Mikrotik RouterBoards

Wed Jul 26, 2023 12:48 am

This tool is amazing !

Has anyone implemented a plugin to allow automatic detection and uploading of firmware depending on the device/arch detected?
Thanks !
 
robertpenz
Member Candidate
Member Candidate
Topic Author
Posts: 104
Joined: Mon Oct 10, 2011 8:41 am

Re: pyNetinstall - Free and Open Source netInstall implementation for Flashing Mikrotik RouterBoards

Mon Jul 31, 2023 2:00 pm

Hey,
I had face a problem with pynetinstall and i troubled it. so you can give me a some tips and tricks to fix it.
Please create a ticket on https://github.com/dvtirol/pynetinstall/issues and we take a look at it


Has anyone implemented a plugin to allow automatic detection and uploading of firmware depending on the device/arch detected?
Thanks !
Yes, we use the pyNetinstall to zero touch deploy our Mikrotiks - it is integrated into our IPAM&DCIM (=source of truths) and so it can't be used as a good example. But if you open an issue on github with a specific example you need, we can provide such.

Regards,
Robert

Who is online

Users browsing this forum: mkx and 96 guests