Hi,
I consider to use MSB as a northbound entrance, there are the queries:
1. Northbound entrance requires the capability of recognising different HTTP
methods in the same URL. Nginx has that, but it has not been mentioned in MSB
API doc. So could I "bypass" MSB to only use Nginx for gathering that
capability?
2. I modified msb.conf in /openresty/nginx/msb-enabled/msb.conf, I added a
location block to achieve 1. I would show the conf and log below:
case 1:
location /api/rest/provMns/v1/NSS/SliceProfiles/ {
if ($request_method = POST ) {
proxy_pass $host:8282/restconf/operations/appc-provider-lcm:allocateNssi/;
}
}
2020/03/21 00:39:44 [info] 48#48: *18 [lua] logger.lua:23:
88a044a191fd461f121569403d2f09d4 {"matched":"rest"} while logging request,
client: 172.29.167.173, server: , request: "POST
/api/rest/provMns/v1/NSS/SliceProfiles/ HTTP/1.1", upstream:
"http://172.31.178.159:8282/restconf/operations/appc-provider-lcm:getNsst/provMns/v1/NSS/SliceProfiles/",
host: "172.31.178.159"
case 2:
location ^~ /api/rest/provMns/v1/NSS/SliceProfiles/ {
if ($request_method = POST ) {
proxy_pass $host:8282/restconf/operations/appc-provider-lcm:allocateNssi/;
}
}
2020/03/21 00:35:59 [info] 50#50: *17 [lua] logger.lua:23:
6af98b125865f5cb7c8823a76f070659 {"matched":"rest"} while logging request,
client: 172.29.167.173, server: , request: "POST
/api/rest/provMns/v1/NSS/SliceProfiles/ HTTP/1.1", upstream:
"http://172.31.178.159:8282/restconf/operations/appc-provider-lcm:modifyNssi/provMns/v1/NSS/SliceProfiles/",
host: "172.31.178.159"
case 3:
location = /api/rest/provMns/v1/NSS/SliceProfiles/ {
if ($request_method = POST ) {
proxy_pass $host:8282/restconf/operations/appc-provider-lcm:allocateNssi/;
}
}
2020/03/21 00:43:10 [info] 46#46: *15 [lua] logger.lua:23:
d7e791b826577f5cbb3ffd3bc8a543e7 {"matched":"rest"} while logging request,
client: 172.29.167.173, server: , request: "POST
/api/rest/provMns/v1/NSS/SliceProfiles/ HTTP/1.1", upstream:
"http://172.31.178.159:8282/restconf/operations/appc-provider-lcm:createNssi/provMns/v1/NSS/SliceProfiles/",
host: "172.31.178.159"
Does MSB has a module named rest? And looks like it would append the rest of
the request url to upstream anyway, how could I stop this, just simply jump to
"proxy_pass" url without appendding anything?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20313): https://lists.onap.org/g/onap-discuss/message/20313
Mute This Topic: https://lists.onap.org/mt/72095756/21656
Mute #msb: https://lists.onap.org/mk?hashtag=msb&subid=2740164
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-