Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshkvl committed Mar 15, 2018
2 parents 8d92a29 + 265bfc2 commit 762f506
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion mininet_part1.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mn --version
```


## 2. To clean up the existing ovs bridges and namespaces
## 2. To clean up the existing ovs bridges and namespaces


Note: sometime we mistakenly closed the mininet shell, or mininet crashed. But the topology components will continue to exists. To clean such stuff, cleanup command is used.
Expand Down
13 changes: 5 additions & 8 deletions mininet_part3.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@

This tutorial helps to learn on writing mininet custom topology.


## Introduction

## Introduction

mininet exposes the python API. We can create a custom topologies using the python API with few lines of code.


## How to write Custom Topology in Mininet :
## How to write Custom Topology in Mininet

Steps are below.


### 1. Import the python required libraries
### 1. Import the python required libraries

```
from mininet.topo import Topo
Expand Down Expand Up @@ -44,7 +42,7 @@ c. addLink



### 3. Start the Topology
### 3. Start the Topology


a. Create the Topology object
Expand All @@ -62,8 +60,7 @@ if __name__ == '__main__':
```


## References:

## References:

1. https://github.com/mininet/mininet/wiki/Introduction-to-Mininet

Expand Down

0 comments on commit 762f506

Please sign in to comment.