~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to tutorial/t-stage4

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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