Adding example Multicast Route Json files
Change-Id: I47b0661cd56df0b991f727512b3c50f8c238671c
(cherry picked from commit 29e5e11907407b4fa03ef9a199b35ee76092ee7d)
diff --git a/apps/mcast/web/src/main/java/org/onosproject/mcast/web/McastRouteWebResource.java b/apps/mcast/web/src/main/java/org/onosproject/mcast/web/McastRouteWebResource.java
index 26e3317..ffe6e65 100644
--- a/apps/mcast/web/src/main/java/org/onosproject/mcast/web/McastRouteWebResource.java
+++ b/apps/mcast/web/src/main/java/org/onosproject/mcast/web/McastRouteWebResource.java
@@ -127,7 +127,7 @@
}
/**
- * Get all sinks connect points for a multicast route.
+ * Get all HostId sinks and their connect points for a multicast route.
*
* @param group group IP address
* @param srcIp source IP address
diff --git a/apps/mcast/web/src/main/resources/jsonExamples/mcastRoute.json b/apps/mcast/web/src/main/resources/jsonExamples/mcastRoute.json
new file mode 100644
index 0000000..f9e638c
--- /dev/null
+++ b/apps/mcast/web/src/main/resources/jsonExamples/mcastRoute.json
@@ -0,0 +1,12 @@
+{
+ "group": "224.0.1.1",
+ "source": "*",
+ "sources": [
+ "of:0000000000000204/6",
+ "of:0000000000000204/7"
+ ],
+ "sinks": [
+ "00:CC:00:00:00:01/None",
+ "00:AA:00:00:00:03/None"
+ ]
+}
\ No newline at end of file
diff --git a/apps/mcast/web/src/main/resources/jsonExamples/mcastRoutes.json b/apps/mcast/web/src/main/resources/jsonExamples/mcastRoutes.json
new file mode 100644
index 0000000..1f11c55
--- /dev/null
+++ b/apps/mcast/web/src/main/resources/jsonExamples/mcastRoutes.json
@@ -0,0 +1,28 @@
+{
+ "routes": [
+ {
+ "group": "224.0.1.2",
+ "source": "10.0.1.1",
+ "sources": [
+ "of:0000000000000205/6",
+ "of:0000000000000205/7"
+ ],
+ "sinks": [
+ "00:CC:00:00:00:02/None",
+ "00:AA:00:00:00:04/None"
+ ]
+ },
+ {
+ "group": "224.0.1.1",
+ "source": "*",
+ "sources": [
+ "of:0000000000000204/6",
+ "of:0000000000000204/7"
+ ],
+ "sinks": [
+ "00:CC:00:00:00:01/None",
+ "00:AA:00:00:00:03/None"
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/apps/mcast/web/src/main/resources/jsonExamples/mcastSinks.json b/apps/mcast/web/src/main/resources/jsonExamples/mcastSinks.json
new file mode 100644
index 0000000..db738c6
--- /dev/null
+++ b/apps/mcast/web/src/main/resources/jsonExamples/mcastSinks.json
@@ -0,0 +1,5 @@
+{
+ "sinks": [
+ "00:CC:00:00:00:05/None"
+ ]
+}
\ No newline at end of file
diff --git a/apps/mcast/web/src/main/resources/jsonExamples/mcastSinksHostId.json b/apps/mcast/web/src/main/resources/jsonExamples/mcastSinksHostId.json
new file mode 100644
index 0000000..b79658c
--- /dev/null
+++ b/apps/mcast/web/src/main/resources/jsonExamples/mcastSinksHostId.json
@@ -0,0 +1,5 @@
+{
+ "sinks": [
+ "of:0000000000000210/8"
+ ]
+}
\ No newline at end of file
diff --git a/apps/mcast/web/src/main/resources/jsonExamples/mcastSources.json b/apps/mcast/web/src/main/resources/jsonExamples/mcastSources.json
new file mode 100644
index 0000000..6277b56
--- /dev/null
+++ b/apps/mcast/web/src/main/resources/jsonExamples/mcastSources.json
@@ -0,0 +1,5 @@
+{
+ "sources": [
+ "of:0000000000000206/8"
+ ]
+}
\ No newline at end of file