Changes to add the read only cores and some fixes to bugs
for processing the config file.
Change-Id: I1393c05d4cbce215e97d1f17b13e044eda7ae472
diff --git a/afrouter/arouter.json b/afrouter/arouter.json
index 50e1d31..7b075ce 100644
--- a/afrouter/arouter.json
+++ b/afrouter/arouter.json
@@ -62,7 +62,7 @@
"name":"read_only",
"type":"round_robin",
"association":"round_robin",
- "backend_cluster":"vcore",
+ "backend_cluster":"ro_vcore",
"methods":[ "ListDevicePorts",
"ListDevicePmConfigs",
"GetImages",
@@ -75,6 +75,8 @@
"ListLogicalDeviceFlowGroups",
"ListDevices",
"GetDevice",
+ "ListLogicalDevices",
+ "GetLogicalDevices",
"GetDeviceType",
"GetDeviceGroup",
"GetLogicalDevice",
@@ -95,8 +97,11 @@
},
"backend_cluster":"vcore",
"methods":["StreamPacketsOut",
+ "ReceivePacketsIn",
+ "ReceiveChangeEvents",
"Subscribe",
"ListLogicalDevices",
+ "GetLogicalDevice",
"ListDeviceFlowGroups",
"ListLogicalDeviceFlowGroups",
"ListDeviceFlows",
@@ -143,7 +148,9 @@
"type":"active_active",
"association": {
"strategy":"serial_number",
- "location":"header"
+ "location":"header",
+ "_TODO":"The key below needs to be implemented, currently hard coded",
+ "key":"voltha_serial_number"
},
"connections": [ {
"name":"vcore21",
@@ -161,7 +168,9 @@
"type":"active_active",
"association": {
"strategy":"serial_number",
- "location":"header"
+ "location":"header",
+ "_TODO":"The key below needs to be implemented, currently hard coded",
+ "key":"voltha_serial_number"
},
"connections": [ {
"name":"vcore31",
@@ -174,6 +183,36 @@
"port":""
}]
}]
+ },
+ {
+ "name":"ro_vcore",
+ "backends":[ {
+ "name":"ro_vcore1",
+ "type":"server",
+ "connections": [ {
+ "name":"ro_vcore11",
+ "addr":"",
+ "port":""
+ }]
+ },
+ {
+ "name":"ro_vcore2",
+ "type":"server",
+ "connections": [ {
+ "name":"ro_vcore21",
+ "addr":"",
+ "port":""
+ }]
+ },
+ {
+ "name":"ro_vcore3",
+ "type":"server",
+ "connections": [ {
+ "name":"ro_vcore31",
+ "addr":"",
+ "port":""
+ }]
+ }]
}
],
"api": {