3 # Rest API configuration
4 pong_mgmt_ip='<rw_mgmt_ip>'
8 # username=<rw_username>
9 # password=<rw_password>
11 # VNF specific configuration
12 pong_server_ip='<rw_connection_point_name pong_vnfd/cp0>'
15 # Make Rest API calls to configure VNF
17 -H "Accept: application/vnd.yang.data+xml" \
18 -H "Content-Type: application/vnd.yang.data+json" \
20 -d "{\"ip\":\"$pong_server_ip\", \"port\":$server_port}" \
21 http://${pong_mgmt_ip}:${pong_mgmt_port}/api/v1/pong/server
25 echo "Failed to set server(own) info for pong!"
30 -H "Accept: application/vnd.yang.data+xml" \
31 -H "Content-Type: application/vnd.yang.data+json" \
33 -d "{\"enable\":true}" \
34 http://${pong_mgmt_ip}:${pong_mgmt_port}/api/v1/pong/adminstatus/state
38 echo "Failed to enable pong service!"