Skip to content

Commit 5fe9963

Browse files
Create initial README for Server
1 parent 18418d4 commit 5fe9963

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

Assets/Dockerfile.png

87.3 KB
Loading

Server/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Switcher and Router
2+
This folder is the source code for the Switcher and Routers.
3+
4+
## Installation
5+
```
6+
npm install
7+
8+
# Start the Switcher
9+
npm run switcher
10+
11+
# Start a Router (can start as many as you want)
12+
npm run router
13+
```
14+
## Dockerising the Switcher
15+
![Dockerfile](../Assets/Dockerfile.png)
16+
17+
```
18+
# Build the Docker image
19+
docker build -t dermot/openflow:1.0 .
20+
21+
# Run the Docker image inside a container
22+
docker run -it --rm --name openflow -p 51510:51510 dermot/openflow:1.0
23+
```
24+
25+
## Switcher
26+
The Switcher is a NodeJS application that listens on port 51510 for OpenFlow messages.
27+
28+
## Router
29+
The Router is a NodeJS application that can be started as many different processes to create multiple OpenFlow layers that connect together.

0 commit comments

Comments
 (0)