You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
Service Instantiation Script (simulate UUI request to SO)
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Menlo; color: #000000; background-color: #ffffff}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 15.0px Menlo; color: #000000; background-color: #ffffff; min-height: 18.0px}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.Apple-tab-span {white-space:pre}
curl -v -X PUT "http://localhost:1080/expectation" -d '{
"httpRequest": {
"method": "POST",
"path": "/controller/v2/tokens"
},
"httpResponse": {
"statusCode": 200,
"headers": {
"content-type": ["application/json"]
},
"body": {
"not": false,
"type": "JSON",
"json": "{\"errcode\":\"0\",\"errmsg\":\"get token successfully.\",\"data\":{\"expiredDate\":\"2018-11-10 10:03:33\",\"token_id\":\"7F06BFDDAC33A989:77DAD6058B1BB81EF1A557745E4D9C78399B31C4DB509704E
D8A7DF05A362A59\"}}"
}
}
}'
curl -v -X PUT "http://localhost:1080/expectation" -d '{
"httpRequest": {
"method": "POST",
"path": "/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/vpn-services"
},
"httpResponse": {
"statusCode": 201
},
"times" : {
"remainingTimes" : 2,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
}
}'
curl -v -X PUT "http://localhost:1080/expectation" -d '{
"httpRequest": {
"method": "PUT",
"path": "/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/huawei-ac-net-l3vpn-svc-vfi:vrf-attributes"
},
"httpResponse": {
"statusCode": 204
},
"times" : {
"remainingTimes" : 2,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
}
}'
curl -v -X PUT "http://localhost:1080/expectation" -d '{
"httpRequest": {
"method": "POST",
"path": "/restconf/data/huawei-ac-net-l3vpn-svc:l3vpn-svc-cfg/sites"
},
"httpResponse": {
"statusCode": 201
},
"times" : {
"remainingTimes" : 2,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
}
}'
# ZTE DCI
curl -v -X PUT "http://localhost:1080/expectation" -d '{
"httpRequest": {
"method": "POST",
"path": "/v2.0/l3-dci-connects"
},
"httpResponse": {
"statusCode": 201
},
"times" : {
"remainingTimes" : 2,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
}
}'
# huaweivnfmdriver
curl -v -X PUT "http://localhost:1080/expectation" -d '{
"httpRequest": {
"method": "POST",
"path": "/api/huaweivnfmdriver/v1/a0400010-11d7-4875-b4ae-5f42ed5d3a85/vnfs"
},
"httpResponse": {
"statusCode": 200,
"headers": {
"content-type": ["application/json"]
},
"body": {
"not": false,
"type": "JSON",
"json": "{\"vnfInstanceId\":\"fa3dca847b054f4eb9d3bc8bb9e5eec9\",\"jobId\":\"fa3dca847b054f4eb9d3bc8bb9e5eec9_post\"}"
}
},
"times" : {
"remainingTimes" : 2,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
}
}'