blob: e920070a287d8b5dbb5bb2a76955b7687b8f2d8e [file] [log] [blame]
Dimitrios Mavrommatis92d93d52017-12-02 13:23:27 -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 {
Dimitrios Mavrommatisc53923a2017-12-03 19:48:48 -08008 "context-id": 202374886,
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 "context-id": 202374887,
Dimitrios Mavrommatis92d93d52017-12-02 13:23:27 -080047 "delegating-ip-prefixes": [
48 "192.168.1.5/32"
49 ],
50 "dl": {
51 "dpn-parameters": {},
52 "mobility-tunnel-parameters": {
53 "tunnel-identifier": "2222",
54 "tunnel-type": "gtpv1"
55 },
56 "tunnel-local-address": "192.168.1.1",
57 "tunnel-remote-address": "10.1.1.1"
58 },
59 "dpn-group": "foo",
60 "dpns": [
61 {
62 "direction": "uplink",
63 "dpn-id": "1",
64 "dpn-parameters": {}
65 }
66 ],
67 "ebi": "5",
68 "imsi": "9135551234",
69 "instructions": {
70 "instr-3gpp-mob": "session uplink"
71 },
72 "lbi": "5",
73 "ul": {
74 "dpn-parameters": {},
75 "mobility-tunnel-parameters": {
76 "tunnel-identifier": "1111",
77 "tunnel-type": "gtpv1"
78 },
79 "tunnel-local-address": "192.168.1.1",
80 "tunnel-remote-address": "10.1.1.1"
81 }
82 }
83 ],
84 "op-id": "1",
85 "op-ref-scope": "op",
86 "op-type": "create",
87 "session-state": "complete"
88 }
Dimitrios Mavrommatisc53923a2017-12-03 19:48:48 -080089}' 'http://localhost:8181/onos/restconf/operations/ietf-dmm-fpcagent:configure' | python -m json.tool