Zero Touch Provisioning on Mikrotik
This repository contain python script to doing Zero Touch Provisioning on Mikrotik
This repository is tested using this Topology To run this repository, you need some python library installed on your computer.- Python 3.6.5
- flask
- paramiko
- telepot
- python-mysqldb
- Create Telegram bot, this telegram bot will used to notify us if the provisioning on Mikrotik completed. You can follow tutorial on https://docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-telegram?view=azure-bot-service-4.0
- Clone this repository
- git clone https://github.com/arrosid/ztp-mikrotik.git
- cd ztp-mikrotik
- Install requirement library
- virtualenv -p python3 venv
- source venv/bin/activate
- pip install -r requirement
- sudo apt-get install python-mysqldb
- Edit ztp_mikrotik.py. Fill the 'your_token' and 'your_chat_id'
- Run the python script
- python3 ztp_mikrotik.py
- Configure PPPoE Server on ISP
- Add ppp_script_on_up.txt to the on UP script in the PPP Server Profile. Modify the 'your_flask_server_ip_address'. Make sure your flask server can reach PPPoE Client. May be you need to add static route to the PPPoE Client via PPPoE Server
- Configure PPPoE Client on Customer, and see that you will reciev Telegram notification and the customer is provisioned automatically