Issue-Id: OCS-94
Change-Id: If86c076cef537c6d9ff1b122f5b63653e62ba599
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
proxy_pass http://$backend;
}
location ~ ^/openoapi/([^/]+)(/[Vv][^/]*)?(.*) {
+
+ #Send requests to Driver Mgr. if 'X_Driver_Parameter' header found in the request
+ if ($http_X_Driver_Parameter) {
+ access_by_lua_block {
+ local driver_manager = require('plugins.driver_manager')
+ driver_manager.access()
+ }
+ }
+
set $apiname $1;
set $apiversion $2;
set $apiserver "fallback";
proxy_pass http://$backend;
}
location ~ ^/openoapi/([^/]+)(/[Vv][^/]*)?(.*) {
+
+ #Send requests to Driver Mgr. if 'X_Driver_Parameter' header found in the request
+ if ($http_X_Driver_Parameter) {
+ access_by_lua_block {
+ local driver_manager = require('plugins.driver_manager')
+ driver_manager.access()
+ }
+ }
+
set $apiname $1;
set $apiversion $2;
set $apiserver "fallback";