blob: de934bfe4dc476583ee06fe66f78f190a18e05fd [file] [log] [blame]
Dimitrios Mavrommatis45eb6d62017-12-03 22:07:36 -08001#!/bin/bash
2curl -X POST --header 'Content-Type: application/json' -u onos:rocks --header 'Accept: application/json' -d '{
3 "input": {
4 "admin-state": "enabled",
5 "client-id": "1",
6 "contexts": [
7 {
8 "context-id": 202374887,
9 "delegating-ip-prefixes": [
10 "192.168.1.5/32"
11 ],
12 "dl": {
13 "dpn-parameters": {},
14 "mobility-tunnel-parameters": {
15 "tunnel-identifier": "2222",
16 "tunnel-type": "gtpv1"
17 },
18 "tunnel-local-address": "192.168.1.1",
19 "tunnel-remote-address": "10.1.1.1"
20 },
21 "dpn-group": "foo",
22 "dpns": [
23 {
24 "direction": "uplink",
25 "dpn-id": "1",
26 "dpn-parameters": {}
27 }
28 ],
29 "ebi": "5",
30 "imsi": "9135551234",
31 "instructions": {
32 "instr-3gpp-mob": "session uplink"
33 },
34 "lbi": "5",
35 "ul": {
36 "dpn-parameters": {},
37 "mobility-tunnel-parameters": {
38 "tunnel-identifier": "1111",
39 "tunnel-type": "gtpv1"
40 },
41 "tunnel-local-address": "192.168.1.1",
42 "tunnel-remote-address": "10.1.1.1"
43 }
44 }
45 ],
46 "op-id": "1",
47 "op-ref-scope": "op",
48 "op-type": "update",
49 "session-state": "complete"
50 }
51}' 'http://localhost:8181/onos/restconf/operations/ietf-dmm-fpcagent:configure' | python -m json.tool