Skip to content

Commit

Permalink
Merge pull request #134 from lyz508/feat/ti-script
Browse files Browse the repository at this point in the history
feat: add sample TI scripts.
  • Loading branch information
ianchen0119 authored Nov 12, 2024
2 parents 704223f + cefb542 commit ebdb217
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/ti/nef_af_post.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set -e

curl -X POST -H "Content-Type: application/json" --data @./nef_ti_anyUE.json \
http://nef.free5gc.org:8000/3gpp-traffic-influence/v1/af001/subscriptions

exit 0
21 changes: 21 additions & 0 deletions script/ti/nef_ti_anyUE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"afServiceId": "Service1",
"dnn": "internet",
"snssai": {
"sst": 1,
"sd": "010203"
},
"anyUeInd": true,
"notificationDestination": "http://af:8000/test123",
"trafficFilters": [{
"flowId": 1,
"flowDescriptions": [
"permit out ip from 1.0.0.1/32 to 10.60.0.0/16"
]
}],
"trafficRoutes": [
{
"dnai": "mec"
}
]
}
15 changes: 15 additions & 0 deletions script/ti/nef_ti_singleUE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"afServiceId": "Service1",
"AfAppId": "app1",
"dnn": "internet",
"snssai": {
"sst": 1,
"sd": "010203"
},
"ipv4Addr": "10.60.0.1",
"notificationDestination": "http://af:8000/test123",
"trafficRoutes": [{
"dnai": "mec"
}],
"suppFeat": "01"
}
22 changes: 22 additions & 0 deletions script/ti/udr_ti_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"dnn": "internet",
"snssai": {
"sst": 1,
"sd": "010203"
},
"interGroupId": "AnyUE",
"trafficFilters": [
{
"flowId": 1,
"flowDescriptions": [
"permit out ip from 1.0.0.1/32 to 10.60.0.0/16"
]
}
],
"trafficRoutes": [
{
"dnai": "mec"
}
]
}

6 changes: 6 additions & 0 deletions script/ti/udr_ti_del.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set -e

curl -X DELETE -H "Content-Type: application/json" \
http://udr.free5gc.org:8000/nudr-dr/v1/application-data/influenceData/914d1e66-15ae-4b4a-8b5e-d397b510ea93

exit 0
11 changes: 11 additions & 0 deletions script/ti/udr_ti_get.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set -e

curl -X GET -H "Content-Type: application/json" \
http://udr.free5gc.org:8000/nudr-dr/v1/application-data/influenceData/
echo ""

curl -X GET -H "Content-Type: application/json" \
http://udr.free5gc.org:8000/nudr-dr/v1/application-data/influenceData?dnns=internet
echo -e "\n\n"

exit 0
6 changes: 6 additions & 0 deletions script/ti/udr_ti_put.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set -e

curl -X PUT -H "Content-Type: application/json" --data @./udr_ti_data.json \
http://udr.free5gc.org:8000/nudr-dr/v1/application-data/influenceData/1

exit 0

0 comments on commit ebdb217

Please sign in to comment.