1 .. _didm-developer-guide:
8 The Device Identification and Driver Management (DIDM) project addresses
9 the need to provide device-specific functionality. Device-specific
10 functionality is code that performs a feature, and the code is
11 knowledgeable of the capability and limitations of the device. For
12 example, configuring VLANs and adjusting FlowMods are features, and
13 there may be different implementations for different device types.
14 Device-specific functionality is implemented as Device Drivers. Device
15 Drivers need to be associated with the devices they can be used with. To
16 determine this association requires the ability to identify the device
22 The DIDM project creates the infrastructure to support the following
25 - **Discovery** - Determination that a device exists in the controller
26 management domain and connectivity to the device can be established.
27 For devices that support the OpenFlow protocol, the existing
28 discovery mechanism in OpenDaylight suffices. Devices that do not
29 support OpenFlow will be discovered through manual means such as the
30 operator entering device information via GUI or REST API.
32 - **Identification** – Determination of the device type.
34 - **Driver Registration** – Registration of Device Drivers as routed
37 - **Synchronization** – Collection of device information, device
38 configuration, and link (connection) information.
40 - **Data Models for Common Features** – Data models will be defined to
41 perform common features such as VLAN configuration. For example,
42 applications can configure a VLAN by writing the VLAN data to the
43 data store as specified by the common data model.
45 - **RPCs for Common Features** – Configuring VLANs and adjusting
46 FlowMods are example of features. RPCs will be defined that specify
47 the APIs for these features. Drivers implement features for specific
48 devices and support the APIs defined by the RPCs. There may be
49 different Driver implementations for different device types.
51 Key APIs and Interfaces
52 -----------------------
54 .. _didm-flow-objective-api:
59 Following are the list of the APIs to create the flow objectives to
60 install the flow rule in OpenFlow switch in pipeline agnostic way.
61 Currently these APIs are getting consumed by Atrium project.
63 Install the Forwarding Objective:
65 ``http://<CONTROLLER-IP>:8181/restconf/operations/atrium-flow-objective:forward``
67 Install the Filter Objective
69 ``http://<CONTROLLER-IP>:8181/restconf/operations/atrium-flow-objective:filter``
71 Install the Next Objective:
73 ``http://<CONTROLLER-IP>:8181/restconf/operations/atrium-flow-objective:next``
78 This release includes a flow mod driver for the HP 3800. This
79 driver adjusts the flows and push the same to the device. This API takes
80 the flow to be adjusted as input and displays the adjusted flow as
81 output in the REST output container. Here is the REST API to adjust and
82 push flows to HP 3800 device:
86 http://<CONTROLLER-IP:8181>/restconf/operations/openflow-feature:adjust-flow
88 Here is an example of an ARP flow and how it gets adjusted and pushed to
91 **adjust-flow input.**
95 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
96 <input xmlns="urn:opendaylight:params:xml:ns:yang:didm:drivers:openflow" xmlns:opendaylight-inventory="urn:opendaylight:inventory">
97 <node>/opendaylight-inventory:nodes/opendaylight-inventory:node[opendaylight-inventory:id='openflow:673249119553088']</node>
106 <flags>SEND_FLOW_REM</flags>
107 <priority>0</priority>
108 <flow-name>ARP_FLOW</flow-name>
116 <output-node-connector>CONTROLLER</output-node-connector>
117 <max-length>65535</max-length>
123 <output-node-connector>NORMAL</output-node-connector>
124 <max-length>65535</max-length>
130 <idle-timeout>180</idle-timeout>
131 <hard-timeout>1800</hard-timeout>
136 In the output, you can see that the table ID has been identified for the
137 given flow and two flow mods are created as a result of adjustment. The
138 first one is to catch ARP packets in Hardware table 100 with an action
139 to goto table 200. The second flow mod is in table 200 with actions:
140 output normal and output controller.
142 **adjust-flow output.**
160 "output-node-connector": "NORMAL",
167 "output-node-connector": "CONTROLLER",
178 "flags": "SEND_FLOW_REM",
180 "hard-timeout": 1800,
188 "flow-name": "ARP_FLOW",
205 "flags": "SEND_FLOW_REM",
207 "hard-timeout": 1800,
209 "flow-name": "ARP_FLOW",
216 API Reference Documentation
217 ---------------------------
220 http://${controller-ip}:8181/apidoc/explorer/index.html,
221 and look under DIDM section to see all the available REST calls and