FYI: trema-edge switch tests

68 views
Skip to first unread message

Hiroaki KAWAI

unread,
Feb 12, 2014, 1:13:19 AM2/12/14
to trem...@googlegroups.com
Hi,

You might hear about recently ryu ( https://github.com/osrg/ryu )
have built a set of openflow switch test suites.
http://osrg.github.io/ryu/certification.html

I've just tested trema-edge openflow switch with it and fixed some bugs.
The result was OK=770 and ERROR=158.
# IMHO, ERRORs are mostly test case bugs, except SCTP_DST/SRC

I'd like to note instructions how-to set up testing here:

----------------------------
ryu switch test setup
=====================
* Create veth, up them and disable ipv6 service
```
ip link add veth0a type veth peer name veth0b
ip link add veth1a type veth peer name veth1b
ifconfig veth0a up
ifconfig veth1a up
ifconfig veth1b up
ifconfig veth0b up
sysctl net.ipv6.conf.all.disable_ipv6=1
```
* Checkout ryu
```
git clone https://github.com/osrg/ryu.git
```
* Install the dependencies
* Launch ryu test. The program will wait for switch connection.
Details are described in ryu/tests/switch/tester.py
```
cd ryu
PYTHONPATH=. python bin/ryu-manager ./ryu/tests/switch/tester.py
--log-file=somelogfile.txt
```
* Create TREMA_HOME
```
mkdir -p /var/tmp/trema1/tmp/pid
mkdir -p /var/tmp/trema2/tmp/pid
```
* Launch 2 swicthes of tester,target
```
# tester
TREMA_HOME=/var/tmp/trema2 ./trema-switch -c 127.0.0.1 -p 6633 -i 0x2 -e
veth0b,veth1b -t stdout
# target
TREMA_HOME=/var/tmp/trema1 ./trema-switch -c 127.0.0.1 -p 6633 -i 0x1 -e
veth0a,veth1a -t stdout -l debug
```
* Wait until test finishes.

----------------------------
Reply all
Reply to author
Forward
0 new messages