https://github.com/arikato111/tenjin-py
Tenjin on python
https://github.com/arikato111/tenjin-py
Last synced: 23 days ago
JSON representation
Tenjin on python
- Host: GitHub
- URL: https://github.com/arikato111/tenjin-py
- Owner: Arikato111
- License: mit
- Created: 2024-08-14T08:24:56.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-25T09:19:38.000Z (7 months ago)
- Last Synced: 2025-04-22T12:07:12.198Z (about 1 month ago)
- Language: Rust
- Homepage: https://pypi.org/project/tenjin-sdn/
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tenjin SDN (For Python)
This Project is want to implement [Tenjin SDN](https://github.com/Arikato111/Tenjin) for python. Tenjin is The sdn framework that you can use for control network.
## Installation
### install tenjin with pip
```bash
pip install tenjin_sdn
```### Install from source
```bash
git clone https://github.com/Arikato111/Tenjin-py
cd Tenjin-py
pip install .
```## Example
### With openflow 1.3
```python
from tenjin_sdn import Ctrl13controller = Ctrl13(address="127.0.0.1", port=6653)
controller.run()
```### With openflow 1.0
```python
from tenjin_sdn import Ctrl10controller = Ctrl10(address="0.0.0.0", port=6653)
controller.run()
```## Mininet
Mininet is a network emulator to create virtual networks for rapid prototyping of Software-Defined.
Using mininet for testing this SDN Framework.### Run Mininet with Openflow 1.3
```bash
sudo mn --controller=remote,ip=127.0.0.1 --mac --switch=ovsk,protocols=OpenFlow13 --topo=tree,2
```### Run Mininet with Openflow 1.0
```bash
sudo mn --controller=remote,ip=127.0.0.1 --mac --switch=ovsk,protocols=OpenFlow10 --topo=tree,2
```