More tofino-demo netcfg flavours for testing

Change-Id: I8958b3cb9da7ffb8fdd9b31b53849718224e2424
diff --git a/tools/test/topos/tofino-demo-def.json b/tools/test/topos/tofino-demo-def.json
new file mode 100644
index 0000000..718676b
--- /dev/null
+++ b/tools/test/topos/tofino-demo-def.json
@@ -0,0 +1,168 @@
+{
+  "devices": {
+    "device:tofino:21": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.40",
+          "deviceKeyId": "p4runtime:device:tofino:21",
+          "port": 50051,
+          "deviceId": 0
+        }
+      },
+      "piPipeconf": {
+        "piPipeconfId": "tofino-default-montara-pipeconf"
+      },
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 128,
+          "removed": false,
+          "type": "copper"
+        },
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 136,
+          "removed": false,
+          "type": "copper"
+        }
+      },
+      "basic": {
+        "name": "Spine 1",
+        "latitude": 41,
+        "driver": "tofino",
+        "longitude": -107
+      }
+    },
+    "device:tofino:22": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.39",
+          "deviceKeyId": "p4runtime:device:tofino:22",
+          "port": 50051,
+          "deviceId": 0
+        }
+      },
+      "piPipeconf": {
+        "piPipeconfId": "tofino-default-montara-pipeconf"
+      },
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 128,
+          "removed": false,
+          "type": "copper"
+        },
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 136,
+          "removed": false,
+          "type": "copper"
+        }
+      },
+      "basic": {
+        "name": "Spine 2",
+        "latitude": 41,
+        "driver": "tofino",
+        "longitude": -99
+      }
+    },
+    "device:tofino:11": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.38",
+          "deviceKeyId": "p4runtime:device:tofino:11",
+          "port": 50051,
+          "deviceId": 0
+        }
+      },
+      "piPipeconf": {
+        "piPipeconfId": "tofino-default-mavericks-pipeconf"
+      },
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 188,
+          "removed": false,
+          "type": "copper"
+        },
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 184,
+          "removed": false,
+          "type": "copper"
+        },
+        "3/0": {
+          "name": "3/0",
+          "speed": 40000,
+          "enabled": true,
+          "number": 180,
+          "removed": false,
+          "type": "copper"
+        }
+      },
+      "basic": {
+        "name": "Leaf 1",
+        "latitude": 33,
+        "driver": "tofino",
+        "longitude": -107
+      }
+    },
+    "device:tofino:12": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.37",
+          "deviceKeyId": "p4runtime:device:tofino:12",
+          "port": 50051,
+          "deviceId": 0
+        }
+      },
+      "piPipeconf": {
+        "piPipeconfId": "tofino-default-mavericks-pipeconf"
+      },
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 188,
+          "removed": false,
+          "type": "copper"
+        },
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 184,
+          "removed": false,
+          "type": "copper"
+        },
+        "3/0": {
+          "name": "3/0",
+          "speed": 40000,
+          "enabled": true,
+          "number": 180,
+          "removed": false,
+          "type": "copper"
+        }
+      },
+      "basic": {
+        "name": "Leaf 2",
+        "latitude": 33,
+        "driver": "tofino",
+        "longitude": -99
+      }
+    }
+  }
+}
diff --git a/tools/test/topos/tofino-demo-simple.json b/tools/test/topos/tofino-demo-simple.json
new file mode 100644
index 0000000..2e5874e
--- /dev/null
+++ b/tools/test/topos/tofino-demo-simple.json
@@ -0,0 +1,168 @@
+{
+  "devices": {
+    "device:tofino:21": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.40",
+          "deviceKeyId": "p4runtime:device:tofino:21",
+          "port": 50051,
+          "deviceId": 0
+        }
+      },
+      "piPipeconf": {
+        "piPipeconfId": "tofino-ecmp-montara"
+      },
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 128,
+          "removed": false,
+          "type": "copper"
+        },
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 136,
+          "removed": false,
+          "type": "copper"
+        }
+      },
+      "basic": {
+        "name": "Spine 1",
+        "latitude": 41,
+        "driver": "tofino",
+        "longitude": -107
+      }
+    },
+    "device:tofino:22": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.39",
+          "deviceKeyId": "p4runtime:device:tofino:22",
+          "port": 50051,
+          "deviceId": 0
+        }
+      },
+      "piPipeconf": {
+        "piPipeconfId": "tofino-ecmp-montara"
+      },
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 128,
+          "removed": false,
+          "type": "copper"
+        },
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 136,
+          "removed": false,
+          "type": "copper"
+        }
+      },
+      "basic": {
+        "name": "Spine 2",
+        "latitude": 41,
+        "driver": "tofino",
+        "longitude": -99
+      }
+    },
+    "device:tofino:11": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.38",
+          "deviceKeyId": "p4runtime:device:tofino:11",
+          "port": 50051,
+          "deviceId": 0
+        }
+      },
+      "piPipeconf": {
+        "piPipeconfId": "tofino-ecmp-mavericks"
+      },
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 188,
+          "removed": false,
+          "type": "copper"
+        },
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 184,
+          "removed": false,
+          "type": "copper"
+        },
+        "3/0": {
+          "name": "3/0",
+          "speed": 40000,
+          "enabled": true,
+          "number": 180,
+          "removed": false,
+          "type": "copper"
+        }
+      },
+      "basic": {
+        "name": "Leaf 1",
+        "latitude": 33,
+        "driver": "tofino",
+        "longitude": -107
+      }
+    },
+    "device:tofino:12": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.37",
+          "deviceKeyId": "p4runtime:device:tofino:12",
+          "port": 50051,
+          "deviceId": 0
+        }
+      },
+      "piPipeconf": {
+        "piPipeconfId": "tofino-ecmp-mavericks"
+      },
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 188,
+          "removed": false,
+          "type": "copper"
+        },
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 184,
+          "removed": false,
+          "type": "copper"
+        },
+        "3/0": {
+          "name": "3/0",
+          "speed": 40000,
+          "enabled": true,
+          "number": 180,
+          "removed": false,
+          "type": "copper"
+        }
+      },
+      "basic": {
+        "name": "Leaf 2",
+        "latitude": 33,
+        "driver": "tofino",
+        "longitude": -99
+      }
+    }
+  }
+}
diff --git a/tools/test/topos/tofino-demo.json b/tools/test/topos/tofino-demo.json
index 31da9b6..8b3dd8b 100644
--- a/tools/test/topos/tofino-demo.json
+++ b/tools/test/topos/tofino-demo.json
@@ -1,253 +1,253 @@
 {
-    "devices": {
-      "device:tofino:21": {
-          "generalprovider": {
-              "p4runtime": {
-                  "ip": "10.254.1.40",
-                  "deviceKeyId": "p4runtime:device:tofino:21",
-                  "port": 50051,
-                  "deviceId": 0
-              }
-          },
-          "piPipeconf": {
-              "piPipeconfId": "tofino-default-montara-pipeconf"
-          },
-          "ports": {
-              "1/0": {
-                  "name": "1/0",
-                  "speed": 100000,
-                  "enabled": true,
-                  "number": 128,
-                  "removed": false,
-                  "type": "copper"
-              },
-              "2/0": {
-                  "name": "2/0",
-                  "speed": 100000,
-                  "enabled": true,
-                  "number": 136,
-                  "removed": false,
-                  "type": "copper"
-              }
-          },
-          "basic": {
-              "name": "Spine 1",
-              "latitude": 41,
-              "driver": "tofino",
-              "longitude": -107
-          }
-      },
-      "device:tofino:22": {
-          "generalprovider": {
-              "p4runtime": {
-                  "ip": "10.254.1.39",
-                  "deviceKeyId": "p4runtime:device:tofino:22",
-                  "port": 50051,
-                  "deviceId": 0
-              }
-          },
-          "piPipeconf": {
-              "piPipeconfId": "tofino-default-montara-pipeconf"
-          },
-          "ports": {
-              "1/0": {
-                  "name": "1/0",
-                  "speed": 100000,
-                  "enabled": true,
-                  "number": 128,
-                  "removed": false,
-                  "type": "copper"
-              },
-              "2/0": {
-                  "name": "2/0",
-                  "speed": 100000,
-                  "enabled": true,
-                  "number": 136,
-                  "removed": false,
-                  "type": "copper"
-              }
-          },
-          "basic": {
-              "name": "Spine 2",
-              "latitude": 41,
-              "driver": "tofino",
-              "longitude": -99
-          }
-      },
-      "device:tofino:11": {
-          "generalprovider": {
-              "p4runtime": {
-                  "ip": "10.254.1.38",
-                  "deviceKeyId": "p4runtime:device:tofino:11",
-                  "port": 50051,
-                  "deviceId": 0
-              }
-          },
-          "piPipeconf": {
-              "piPipeconfId": "tofino-default-mavericks-pipeconf"
-          },
-          "ports": {
-              "1/0": {
-                  "name": "1/0",
-                  "speed": 100000,
-                  "enabled": true,
-                  "number": 188,
-                  "removed": false,
-                  "type": "copper"
-              },
-              "2/0": {
-                  "name": "2/0",
-                  "speed": 100000,
-                  "enabled": true,
-                  "number": 184,
-                  "removed": false,
-                  "type": "copper"
-              },
-              "3/0": {
-                  "name": "3/0",
-                  "speed": 40000,
-                  "enabled": true,
-                  "number": 180,
-                  "removed": false,
-                  "type": "copper"
-              }
-          },
-          "basic": {
-              "name": "Leaf 1",
-              "latitude": 33,
-              "driver": "tofino",
-              "longitude": -107
-          }
-      },
-      "device:tofino:12": {
-          "generalprovider": {
-              "p4runtime": {
-                  "ip": "10.254.1.37",
-                  "deviceKeyId": "p4runtime:device:tofino:12",
-                  "port": 50051,
-                  "deviceId": 0
-              }
-          },
-          "piPipeconf": {
-              "piPipeconfId": "tofino-default-mavericks-pipeconf"
-          },
-          "ports": {
-              "1/0": {
-                  "name": "1/0",
-                  "speed": 100000,
-                  "enabled": true,
-                  "number": 188,
-                  "removed": false,
-                  "type": "copper"
-              },
-              "2/0": {
-                  "name": "2/0",
-                  "speed": 100000,
-                  "enabled": true,
-                  "number": 184,
-                  "removed": false,
-                  "type": "copper"
-              },
-              "3/0": {
-                  "name": "3/0",
-                  "speed": 40000,
-                  "enabled": true,
-                  "number": 180,
-                  "removed": false,
-                  "type": "copper"
-              }
-          },
-          "basic": {
-              "name": "Leaf 2",
-              "latitude": 33,
-              "driver": "tofino",
-              "longitude": -99
-          }
-      }
-    },
-    "links": {
-      "device:tofino:11/188-device:tofino:21/128": {
-        "basic": {
-          "bandwidth": 100000,
-          "type": "DIRECT"
+  "devices": {
+    "device:tofino:21": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.40",
+          "deviceKeyId": "p4runtime:device:tofino:21",
+          "port": 50051,
+          "deviceId": 0
         }
       },
-      "device:tofino:11/184-device:tofino:22/128": {
-        "basic": {
-          "bandwidth": 100000,
-          "type": "DIRECT"
-        }
+      "piPipeconf": {
+        "piPipeconfId": "tofino-ecmp-montara"
       },
-      "device:tofino:12/188-device:tofino:21/136": {
-        "basic": {
-          "bandwidth": 100000,
-          "type": "DIRECT"
-        }
-      },
-      "device:tofino:12/184-device:tofino:22/136": {
-        "basic": {
-          "bandwidth": 100000,
-          "type": "DIRECT"
-        }
-      },
-      "device:tofino:21/128-device:tofino:11/188": {
-        "basic": {
-          "bandwidth": 100000,
-          "type": "DIRECT"
-        }
-      },
-      "device:tofino:22/128-device:tofino:11/184": {
-        "basic": {
-          "bandwidth": 100000,
-          "type": "DIRECT"
-        }
-      },
-      "device:tofino:21/136-device:tofino:12/188": {
-        "basic": {
-          "bandwidth": 100000,
-          "type": "DIRECT"
-        }
-      },
-      "device:tofino:22/136-device:tofino:12/184": {
-        "basic": {
-          "bandwidth": 100000,
-          "type": "DIRECT"
-        }
-      }
-    },
-    "hosts": {
-        "3c:fd:fe:a6:e7:08/-1": {
-            "basic": {
-                "latitude": 28,
-                "ips": [
-                    "10.0.0.1"
-                ],
-                "locations": [
-                    "device:tofino:11/180"
-                ],
-                "longitude": -107,
-                "name": "h1"
-            }
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 128,
+          "removed": false,
+          "type": "copper"
         },
-        "3c:fd:fe:a6:e7:09/-1": {
-            "basic": {
-                "latitude": 28,
-                "ips": [
-                    "10.0.0.2"
-                ],
-                "locations": [
-                    "device:tofino:12/180"
-                ],
-                "longitude": -99,
-                "name": "h2"
-            }
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 136,
+          "removed": false,
+          "type": "copper"
         }
+      },
+      "basic": {
+        "name": "Spine 1",
+        "latitude": 41,
+        "driver": "tofino",
+        "longitude": -107
+      }
     },
-    "apps": {
-        "org.onosproject.core": {
-            "core": {
-                "linkDiscoveryMode": "STRICT"
-            }
+    "device:tofino:22": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.39",
+          "deviceKeyId": "p4runtime:device:tofino:22",
+          "port": 50051,
+          "deviceId": 0
         }
+      },
+      "piPipeconf": {
+        "piPipeconfId": "tofino-ecmp-montara"
+      },
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 128,
+          "removed": false,
+          "type": "copper"
+        },
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 136,
+          "removed": false,
+          "type": "copper"
+        }
+      },
+      "basic": {
+        "name": "Spine 2",
+        "latitude": 41,
+        "driver": "tofino",
+        "longitude": -99
+      }
+    },
+    "device:tofino:11": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.38",
+          "deviceKeyId": "p4runtime:device:tofino:11",
+          "port": 50051,
+          "deviceId": 0
+        }
+      },
+      "piPipeconf": {
+        "piPipeconfId": "tofino-ecmp-mavericks"
+      },
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 188,
+          "removed": false,
+          "type": "copper"
+        },
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 184,
+          "removed": false,
+          "type": "copper"
+        },
+        "3/0": {
+          "name": "3/0",
+          "speed": 40000,
+          "enabled": true,
+          "number": 180,
+          "removed": false,
+          "type": "copper"
+        }
+      },
+      "basic": {
+        "name": "Leaf 1",
+        "latitude": 33,
+        "driver": "tofino",
+        "longitude": -107
+      }
+    },
+    "device:tofino:12": {
+      "generalprovider": {
+        "p4runtime": {
+          "ip": "10.254.1.37",
+          "deviceKeyId": "p4runtime:device:tofino:12",
+          "port": 50051,
+          "deviceId": 0
+        }
+      },
+      "piPipeconf": {
+        "piPipeconfId": "tofino-ecmp-mavericks"
+      },
+      "ports": {
+        "1/0": {
+          "name": "1/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 188,
+          "removed": false,
+          "type": "copper"
+        },
+        "2/0": {
+          "name": "2/0",
+          "speed": 100000,
+          "enabled": true,
+          "number": 184,
+          "removed": false,
+          "type": "copper"
+        },
+        "3/0": {
+          "name": "3/0",
+          "speed": 40000,
+          "enabled": true,
+          "number": 180,
+          "removed": false,
+          "type": "copper"
+        }
+      },
+      "basic": {
+        "name": "Leaf 2",
+        "latitude": 33,
+        "driver": "tofino",
+        "longitude": -99
+      }
     }
+  },
+  "links": {
+    "device:tofino:11/188-device:tofino:21/128": {
+      "basic": {
+        "bandwidth": 100000,
+        "type": "DIRECT"
+      }
+    },
+    "device:tofino:11/184-device:tofino:22/128": {
+      "basic": {
+        "bandwidth": 100000,
+        "type": "DIRECT"
+      }
+    },
+    "device:tofino:12/188-device:tofino:21/136": {
+      "basic": {
+        "bandwidth": 100000,
+        "type": "DIRECT"
+      }
+    },
+    "device:tofino:12/184-device:tofino:22/136": {
+      "basic": {
+        "bandwidth": 100000,
+        "type": "DIRECT"
+      }
+    },
+    "device:tofino:21/128-device:tofino:11/188": {
+      "basic": {
+        "bandwidth": 100000,
+        "type": "DIRECT"
+      }
+    },
+    "device:tofino:22/128-device:tofino:11/184": {
+      "basic": {
+        "bandwidth": 100000,
+        "type": "DIRECT"
+      }
+    },
+    "device:tofino:21/136-device:tofino:12/188": {
+      "basic": {
+        "bandwidth": 100000,
+        "type": "DIRECT"
+      }
+    },
+    "device:tofino:22/136-device:tofino:12/184": {
+      "basic": {
+        "bandwidth": 100000,
+        "type": "DIRECT"
+      }
+    }
+  },
+  "hosts": {
+    "3c:fd:fe:a6:e7:08/-1": {
+      "basic": {
+        "latitude": 28,
+        "ips": [
+          "10.0.0.1"
+        ],
+        "locations": [
+          "device:tofino:11/180"
+        ],
+        "longitude": -107,
+        "name": "h1"
+      }
+    },
+    "3c:fd:fe:a6:e7:09/-1": {
+      "basic": {
+        "latitude": 28,
+        "ips": [
+          "10.0.0.2"
+        ],
+        "locations": [
+          "device:tofino:12/180"
+        ],
+        "longitude": -99,
+        "name": "h2"
+      }
+    }
+  },
+  "apps": {
+    "org.onosproject.core": {
+      "core": {
+        "linkDiscoveryMode": "STRICT"
+      }
+    }
+  }
 }