Dimitrios Mavrommatis | 92d93d5 | 2017-12-02 13:23:27 -0800 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | curl -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": 202374885, |
| 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": "create", |
| 49 | "session-state": "complete" |
| 50 | } |
| 51 | }' 'http://localhost:8181/onos/restconf/operations/ietf-dmm-fpcagent:configure' |