Migrate NatApp dev docs to rst
[docs.git] / manuals / user-guide / src / main / asciidoc / openflowplugin / odl-ofp-test-provider-groups.adoc
1 [[odl-ofp-test-provider-groups_test-provider]]
2 ==== Group : 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 [[addgroup-addgroup]]
11 ===== AddGroup : addGroup
12
13 Run the controller by executing:
14
15 --------------------------------------------------------------------------------------------------------------------
16 cd openflowplugin/distribution/base/target/distributions-openflowplugin-base-0.0.1-SNAPSHOT-osgipackage/opendaylight
17 ./run.sh
18 --------------------------------------------------------------------------------------------------------------------
19
20 Point your mininet to the controller by giving the parameters
21 --controller=remote,ip=.
22
23 Once you see your node (probably openflow:1 if you've been following
24 along) in the inventory, at the OSGI command line try running:
25
26 -------------------------
27 addGroup openflow:1 a# g#
28 -------------------------
29
30 Where # is a number between 1 and 4 for grouptype(g#) and 1 and 28 for
31 actiontype(a#). You can confirm that they were created on the switch.
32
33 [[removegroup-removegroup]]
34 ===== RemoveGroup : removeGroup
35
36 Run the controller by executing:
37
38 --------------------------------------------------------------------------------------------------------------------
39 cd openflowplugin/distribution/base/target/distributions-openflowplugin-base-0.0.1-SNAPSHOT-osgipackage/opendaylight
40 ./run.sh
41 --------------------------------------------------------------------------------------------------------------------
42
43 Point your mininet at the controller as described above.
44
45 Once you see your node (probably openflow:1 if you've been following
46 along) in the inventory, at the OSGI command line try running:
47
48 ----------------------------
49 removeGroup openflow:1 a# g#
50 ----------------------------
51
52 Where # is a number between 1 and 4 for grouptype(g#) and 1 and 28 for
53 actiontype(a#). GroupId should be same as that used for adding the flow.
54 You can confirm that it was removed from the switch.
55
56 [[modifygroup-modifygroup]]
57 ===== ModifyGroup : modifyGroup
58
59 Run the controller by executing:
60
61 --------------------------------------------------------------------------------------------------------------------
62 cd openflowplugin/distribution/base/target/distributions-openflowplugin-base-0.0.1-SNAPSHOT-osgipackage/opendaylight
63 ./run.sh
64 --------------------------------------------------------------------------------------------------------------------
65
66 Point your mininet at the controller as described above.
67
68 Once you see your node (probably openflow:1 if you've been following
69 along) in the inventory, at the OSGI command line try running:
70
71 ----------------------------
72 modifyGroup openflow:1 a# g#
73 ----------------------------
74
75 Where # is a number between 1 and 4 for grouptype(g#) and 1 and 28 for
76 actiontype(a#). GroupId should be same as that used for adding the flow.
77 You can confirm that it was modified on the switch.