Fix some output format issues

Change-Id: I6eab9da1f0c4ff047b27c3d8c572d587a32d61ce
diff --git a/scripts/nbhelper/network.py b/scripts/nbhelper/network.py
index 5520d48..3a51219 100644
--- a/scripts/nbhelper/network.py
+++ b/scripts/nbhelper/network.py
@@ -94,9 +94,13 @@
                     "ip4": str(ip.address),
                     "custom_fields": ip.custom_fields,
                 }
+
+                rfc3442routes = ip.custom_fields.get("rfc3442routes")
+                rfc3442routes = rfc3442routes.split(",") if rfc3442routes else list()
+
                 self.routes.append(
                     {
-                        "ip": str(ip.address),
-                        "rfc3442routes": [ip.custom_fields.get("rfc3442routes")],
+                        "ip": str(netaddr.IPNetwork(ip.address).ip),
+                        "rfc3442routes": rfc3442routes,
                     }
                 )