Add odtn-port-type attribute

Change-Id: Iecb2da0c1fa8fc3ead576ddef3f9fe2ac384c270
diff --git a/drivers/odtn-driver/src/main/java/org/onosproject/drivers/odtn/OpenConfigDeviceDiscovery.java b/drivers/odtn-driver/src/main/java/org/onosproject/drivers/odtn/OpenConfigDeviceDiscovery.java
index ba98641..d59d5c0 100644
--- a/drivers/odtn-driver/src/main/java/org/onosproject/drivers/odtn/OpenConfigDeviceDiscovery.java
+++ b/drivers/odtn-driver/src/main/java/org/onosproject/drivers/odtn/OpenConfigDeviceDiscovery.java
@@ -179,17 +179,21 @@
             // for now we just need a Port with annotations
             builder.type(Type.OCH);
 
+            props.putIfAbsent(PORT_TYPE, OdtnPortType.LINE.value());
+
             // Just a heuristics to deal with simple transponder
             // if the device declare odtn-connection-id, just use them
             // if not assign same value to relevant ports types
             props.putIfAbsent(CONNECTION_ID, "the-only-one");
             break;
+
         case "oc-platform-types:TRANSCEIVER":
-        //case "oc-opt-types:OPTICAL_CHANNEL":
             // TODO assign appropriate port type & annotations at some point
             // for now we just need a Port with annotations
             builder.type(Type.PACKET);
 
+            props.putIfAbsent(PORT_TYPE, OdtnPortType.CLIENT.value());
+
             // Just a heuristics to deal with simple transponder
             // if the device declare odtn-connection-id, just use them
             // if not assign same value to relevant ports types