Merge "fixing LISP flow mapping addr format table"
[docs.git] / manuals / user-guide / src / main / asciidoc / openflowplugin / odl-ofp-test-provider-topology.adoc
1 [[odl-ofp-test-provider-topoogy_test-provider]]
2 ==== Topology : Notification
3
4 Currently, the openflowplugin has a test-provider that allows you to get
5 notifications for the topology related events like Link-Discovered ,
6 Link-Removed events.
7
8 ===== Link Discovered Event : Testing
9
10 Run the controller by executing:
11
12 --------------------------------------------------------------------------------------------------------------------
13 cd openflowplugin/distribution/base/target/distributions-openflowplugin-base-0.0.1-SNAPSHOT-osgipackage/opendaylight
14 ./run.sh
15 --------------------------------------------------------------------------------------------------------------------
16
17 Point your mininet to the controller by giving the parameters
18 --controller=remote,ip=. Once the controller is connected to the switch,
19 Link-Discovered event can be tested by initially configuring the
20 specific flows on the switch. For Link Discovered event either
21 table-miss flow or LLDP ether-type flow can be configured.
22
23 Configuring Table-Miss flow using OpenflowpluginTestCommandProvider
24
25 ------------------------
26 addMDFlow Openflow:1 fTM
27 ------------------------
28
29 as per this
30 OpenDaylight_OpenFlow_Plugin:Test_Provider#Flows_:_Test_Provider[link].
31 'fTM' is the table-miss scenario here.
32
33 Once the table-miss flow is configured through above command, we can see
34 the Link-Discovered event in the debug logs on the controller console.
35
36 Configuring LLDP ether-type flow using OpenflowpluginTestCommandProvider
37
38 ------------------------------------
39 addMDFlow Openflow:1 0(table-id) f81
40 ------------------------------------
41
42 You can confirm that they were created on the switch.
43
44 Once the LLDP ether-type flow is configured through above command, we
45 can see the Link-Discovered event in the debug logs on the controller
46 console.
47
48 ===== Link Removed Event : Testing
49
50 Having configured either table-miss or lldp ether-type flow on switch,
51 once the switch is disconnected we see the Link-Removed event