[ONOS-7893] TerminalDevice driver for OpenConfig transponders.
Includes FlowRuleProgrammable and DeviceDiscovery behaviours.
The patch enables the configuration of client and line sides of the transponder.
FlowRules coming from the compilation of OpticalConnectivity and OpticalCircuit intents are translated in proper netconf/xml messages.
The patch also fixes an issue in the OpticalCircuiIntentCompiler to avoid overwriting among generated flowrules in case of bidirectional intents.
The patch also extend optical-rest app to enable deletion of OpticalCircuit intents.
An example of OpenConfig TerminalDevice xml datastore is included.

patch 2: Addressed comments by Ramon Casellas. Checkstyle.

patch 3: Fixed typo in OpticalConnectivityIntentCompiler.

patch 4: Checkstyle.

patch 5: Addressed comments by Andrea Campanella.

patch 6: Introduced Jira tag

patch 7: Update commit message.

patch 8: Ranaming files.

patch 9: Checkstyle.

Change-Id: Ia50bc0877ecd314aaf48cdb8465451a68313ce3a
diff --git a/apps/optical-rest/src/main/resources/definitions/CreateIntent.json b/apps/optical-rest/src/main/resources/definitions/CreateIntent.json
index da4f215..3106421 100644
--- a/apps/optical-rest/src/main/resources/definitions/CreateIntent.json
+++ b/apps/optical-rest/src/main/resources/definitions/CreateIntent.json
@@ -20,11 +20,11 @@
       "properties": {
         "device": {
           "type": "string",
-          "example": "netconf:10.255.255.14:2022"
+          "example": "netconf:10.10.255.14:2022"
         },
         "port": {
           "type": "string",
-          "example": "101"
+          "example": "10102"
         }
       }
     },
@@ -38,15 +38,15 @@
       "properties": {
         "device": {
           "type": "string",
-          "example": "netconf:10.255.255.17:2022"
+          "example": "netconf:10.10.255.15:2022"
         },
         "port": {
           "type": "string",
-          "example": "201"
+          "example": "10102"
         }
       }
     },
-    "bidirection": {
+    "bidirectional": {
       "type": "boolean",
       "example": false
     },
@@ -115,11 +115,11 @@
             "properties" : {
               "src": {
                 "type": "string",
-                "example": "netconf:10.255.255.14:2022/101"
+                "example": "netconf:10.10.255.14:2022/10102"
               },
               "dst": {
                 "type": "string",
-                "example": "netconf:10.255.255.9:2022/201"
+                "example": "netconf:10.10.255.15:2022/10102"
               }
             }
           }