blob: c8278f587d35a6d6b3d1d8e208fedad238fd505e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# FAP - Fast and Agile Provisioning
Tools (DHCP daemon + HTTP daemon + DB) for managing provisioning towards a large number of factory default Juniper switches (EX2200) using ZTP (Zero Touch Protocol) over DHCP relays.
The project is built with Python (>3.4.0) and PostgreSQL (>9.3.5).
Licensed under the GNU GPL, version 2. See the included COPYING file.
## Usage
Launch the python scripts for fap from tgmanage directory.
apt-get install apache2 php5 python3 python3-psycopg2 php5-pgsql
a2enmod cgi
a2enmod rewrite
### HTTPD
j@lappie:~/git/tgmanage$ sudo python3 fap/httpd/server_http.py
Example: <a href="httpd/terminal.log">httpd/terminal.log</a>
### DHCPD
j@lappie:~/git/tgmanage$ sudo python3 fap/dhcpd/server_dhcp.py
Example: <a href="dhcpd/terminal.log">dhcpd/terminal.log</a>
# TODO
* DONE: Support for IPv6 management
* Process multiple HTTP request simultaneously
* Support for only pushing JunOS image to switch - no config (for backup switches)
* Try/catch on whole ethernet frame in DHCPD
* Timestamps on each line in log both from DHCPD and HTTPD
|