1 [[odl-ofp-test-provider-topoogy_test-provider]]
2 ==== Topology : Notification
4 Currently, the openflowplugin has a test-provider that allows you to get
5 notifications for the topology related events like Link-Discovered ,
8 ===== Link Discovered Event : Testing
10 Run the controller by executing:
12 --------------------------------------------------------------------------------------------------------------------
13 cd openflowplugin/distribution/base/target/distributions-openflowplugin-base-0.0.1-SNAPSHOT-osgipackage/opendaylight
15 --------------------------------------------------------------------------------------------------------------------
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.
23 Configuring Table-Miss flow using OpenflowpluginTestCommandProvider
25 ------------------------
26 addMDFlow Openflow:1 fTM
27 ------------------------
30 OpenDaylight_OpenFlow_Plugin:Test_Provider#Flows_:_Test_Provider[link].
31 'fTM' is the table-miss scenario here.
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.
36 Configuring LLDP ether-type flow using OpenflowpluginTestCommandProvider
38 ------------------------------------
39 addMDFlow Openflow:1 0(table-id) f81
40 ------------------------------------
42 You can confirm that they were created on the switch.
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
48 ===== Link Removed Event : Testing
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