Skip to content

Commit

Permalink
bundle exec trema => ./bin/trema
Browse files Browse the repository at this point in the history
closes #4
  • Loading branch information
yasuhito committed Oct 8, 2015
1 parent 038f332 commit 5f092c2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ The `lib/learning_switch.rb` is an OpenFlow controller implementation
that emulates a layer 2 switch. Run this like so:

```
$ bundle exec trema run lib/learning_switch.rb -c trema.conf
$ ./bin/trema run ./lib/learning_switch.rb -c trema.conf
```

Then send some packets from host1 to host2, and show received packet
stats of host2:

```
$ bundle exec trema send_packets --source host1 --dest host2 --npackets 10
$ bundle exec trema show_stats host2
$ ./bin/trema send_packets --source host1 --dest host2 --npackets 10
$ ./bin/trema show_stats host2
Packets received:
192.168.0.1 -> 192.168.0.2 = 10 packets
```
Expand All @@ -60,8 +60,7 @@ The `lib/multi_learning_switch.rb` is an extension to
`lib/learning_switch.rb`. It can emulate multiple OpenFlow switches.

```
$ trema run ./lib/multi_learning_switch.rb -c trema.multi.conf
$ ./bin/trema run ./lib/multi_learning_switch.rb -c trema.multi.conf
```


Enjoy!

0 comments on commit 5f092c2

Please sign in to comment.