Updated git submodules
[docs.git] / manuals / user-guide / src / main / asciidoc / openflowplugin / odl-ofp-test-provider-flows.adoc
1 [[odl-ofp-test-provider-flows_test-provider]]
2 ==== Flows : Test Provider
3
4 Currently, the openflowplugin has a test-provider that allows you to
5 push various flows through the system from the OSGI command line. Once
6 those flows have been pushed through, you can see them as examples and
7 then use them to see in the config what a particular flow example looks
8 like.
9
10 ===== AddFlow : addMDFlow
11
12 Run the controller by executing:
13
14 --------------------------------------------------------------------------------------------------------------------
15 cd openflowplugin/distribution/base/target/distributions-openflowplugin-base-0.0.1-SNAPSHOT-osgipackage/opendaylight
16 ./run.sh
17 --------------------------------------------------------------------------------------------------------------------
18
19 Point your mininet to the controller by giving the parameters
20 --controller=remote,ip=.
21
22 Once you see your node (probably openflow:1 if you've been following
23 along) in the inventory, at the OSGI command line try running:
24
25 -----------------------
26 addMDFlow openflow:1 f#
27 -----------------------
28
29 Where # is a number between 1 and 80 and openflow:1 is the of the
30 switch. This will create one of 80 possible flows. You can confirm that
31 they were created on the switch.
32
33 ===== RemoveFlow : removeMDFlow
34
35 Similar to addMDFlow, from the controller OSGi prompt, while your switch
36 is connected to the controller, try running:
37
38 --------------------------
39 removeMDFlow openflow:1 f#
40 --------------------------
41
42 where # is a number between 1 and 80 and openflow:1 is the of the
43 switch. The flow to be deleted should have same flowid and Nodeid as
44 used for flow add.
45
46 ===== ModifyFlow : modifyMDFlow
47
48 Similar to addMDFlow, from the controller OSGi prompt, while your switch
49 is connected to the controller, try running:
50
51 --------------------------
52 modifyMDFlow openflow:1 f#
53 --------------------------
54
55 where # is a number between 1 and 80 and openflow:1 is the of the
56 switch. The flow to be deleted should have same flowid and Nodeid as
57 used for flow add.