Added missing CLI output of HostToHostIntent-specific info
for the "intents" CLI command.

Change-Id: Icb150b570e8b4c0a52186489d408842d4327b387
diff --git a/cli/src/main/java/org/onosproject/cli/net/LinksListCommand.java b/cli/src/main/java/org/onosproject/cli/net/LinksListCommand.java
index d33f733..99872ac 100644
--- a/cli/src/main/java/org/onosproject/cli/net/LinksListCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/net/LinksListCommand.java
@@ -23,6 +23,7 @@
 import org.apache.karaf.shell.commands.Command;
 import org.onosproject.cli.AbstractShellCommand;
 import org.onosproject.net.ConnectPoint;
+import org.onosproject.net.HostId;
 import org.onosproject.net.Link;
 import org.onosproject.net.link.LinkService;
 
@@ -89,6 +90,19 @@
     }
 
     /**
+     * Produces a JSON object for the specified host ID.
+     *
+     * @param mapper    object mapper
+     * @param hostId    host ID to encode
+     * @return JSON object
+     */
+    public static ObjectNode json(ObjectMapper mapper, HostId hostId) {
+        return mapper.createObjectNode()
+                .put("mac", hostId.mac().toString())
+                .put("vlanId", hostId.vlanId().toString());
+    }
+
+    /**
      * Produces a JSON object for the specified connect point.
      *
      * @param mapper       object mapper