This web application allows users to configure VXLAN overlays between a list of hosts using OVN (Open Virtual Network). The application provides a web interface to enter the required host information and configure the VXLAN overlays.
The following Python packages are required to run the application:
- Flask
- Flask-WTF
- python-ovn
You can install these dependencies using pip:
pip install Flask Flask-WTF python-ovn
-
Run the Flask application by executing the following command: (python ovn_vxlan.py)
-
Access the web application at
http://localhost:5000/
in your browser. -
Fill in the required host information (name, IP address, MAC address, and VTEP IP address) for each host.
-
Click the "Add Host" button to add more hosts to the list.
-
Click "Configure VXLAN" to configure VXLAN overlays between the entered hosts.
-
If the configuration is successful, a success message will be displayed on the page. If there's an error, the error message will be displayed.
The application also provides a JSON API to configure VXLAN overlays. You can send a POST request to the /configure_vxlan
endpoint with a JSON body containing a list of hosts. Here's an example of the expected input format:
{
"hosts": [
{
"name": "host1",
"ip": "10.0.0.1",
"mac": "aa:bb:cc:dd:ee:01",
"vtep_ip": "192.168.1.1"
},
{
"name": "host2",
"ip": "10.0.0.2",
"mac": "aa:bb:cc:dd:ee:02",
"vtep_ip": "192.168.1.2"
}
]
}