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

« back to all changes in this revision

Viewing changes to tutorial/t-stage1

  • 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=1, priority=0, actions=drop"
 
4
 
 
5
ovs-ofctl add-flow br0 \
 
6
    "table=1, priority=99, in_port=1, actions=resubmit(,2)"
 
7
 
 
8
ovs-ofctl add-flows br0 - <<'EOF'
 
9
    table=1, priority=99, in_port=2, vlan_tci=0, actions=mod_vlan_vid:20, resubmit(,2)
 
10
    table=1, priority=99, in_port=3, vlan_tci=0, actions=mod_vlan_vid:30, resubmit(,2)
 
11
    table=1, priority=99, in_port=4, vlan_tci=0, actions=mod_vlan_vid:30, resubmit(,2)
 
12
EOF