]>
Commit | Line | Data |
---|---|---|
eeecce05 BP |
1 | #! /bin/sh -ve |
2 | ||
3 | ovs-ofctl add-flow br0 "table=4 reg0=1 actions=1" | |
4 | ||
5 | ovs-ofctl add-flows br0 - <<'EOF' | |
6 | table=4 reg0=2 actions=strip_vlan,2 | |
7 | table=4 reg0=3 actions=strip_vlan,3 | |
8 | table=4 reg0=4 actions=strip_vlan,4 | |
9 | EOF | |
10 | ||
11 | ovs-ofctl add-flows br0 - <<'EOF' | |
12 | table=4 reg0=0 priority=99 dl_vlan=20 actions=1,strip_vlan,2 | |
13 | table=4 reg0=0 priority=99 dl_vlan=30 actions=1,strip_vlan,3,4 | |
14 | table=4 reg0=0 priority=50 actions=1 | |
15 | EOF |