blob: dc2fb9eea6e52077c79fdcf1bcdcf81134a71625 [file] [log] [blame]
#!/bin/bash
curl -X POST --header 'Content-Type: application/json' -u onos:rocks --header 'Accept: application/json' -d '{
"input": {
"admin-state": "enabled",
"client-id": "1",
"contexts": [
{
"context-id": 202374885,
"delegating-ip-prefixes": [
"192.168.1.5/32"
],
"dl": {
"dpn-parameters": {},
"mobility-tunnel-parameters": {
"tunnel-identifier": "2222",
"tunnel-type": "gtpv1"
},
"tunnel-local-address": "192.168.1.1",
"tunnel-remote-address": "10.1.1.1"
},
"dpn-group": "foo",
"dpns": [
{
"direction": "uplink",
"dpn-id": "1",
"dpn-parameters": {}
}
],
"ebi": "5",
"imsi": "9135551234",
"instructions": {
"instr-3gpp-mob": "session uplink"
},
"lbi": "5",
"ul": {
"dpn-parameters": {},
"mobility-tunnel-parameters": {
"tunnel-identifier": "1111",
"tunnel-type": "gtpv1"
},
"tunnel-local-address": "192.168.1.1",
"tunnel-remote-address": "10.1.1.1"
}
}
],
"op-id": "1",
"op-ref-scope": "op",
"op-type": "create",
"session-state": "complete"
}
}' 'http://localhost:8181/onos/restconf/operations/ietf-dmm-fpcagent:configure'