Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 1 | { |
| 2 | "type": "object", |
| 3 | "title": "createIntent", |
| 4 | "required": [ |
| 5 | "ingressPoint", |
| 6 | "egressPoint" |
| 7 | ], |
| 8 | "properties": { |
| 9 | "appId": { |
| 10 | "type": "string", |
| 11 | "example": "org.onosproject.ovsdb" |
| 12 | }, |
| 13 | "ingressPoint": { |
| 14 | "type": "object", |
| 15 | "title": "ingressPoint", |
| 16 | "required": [ |
| 17 | "device", |
| 18 | "port" |
| 19 | ], |
| 20 | "properties": { |
| 21 | "device": { |
| 22 | "type": "string", |
| 23 | "example": "of:0000000000000001" |
| 24 | }, |
| 25 | "port": { |
| 26 | "type": "string", |
| 27 | "example": "1" |
| 28 | } |
| 29 | } |
| 30 | }, |
| 31 | "egressPoint": { |
| 32 | "type": "object", |
| 33 | "title": "egressPoint", |
| 34 | "required": [ |
| 35 | "device", |
| 36 | "port" |
| 37 | ], |
| 38 | "properties": { |
| 39 | "device": { |
| 40 | "type": "string", |
| 41 | "example": "of:0000000000000002" |
| 42 | }, |
| 43 | "port": { |
| 44 | "type": "string", |
| 45 | "example": "200" |
| 46 | } |
| 47 | } |
| 48 | }, |
| 49 | "bidirection": { |
| 50 | "type": "boolean", |
| 51 | "example": true |
| 52 | }, |
| 53 | "signal": { |
| 54 | "type": "object", |
| 55 | "title": "signal", |
| 56 | "required": [ |
| 57 | "channelSpacing", |
| 58 | "gridType", |
| 59 | "spacingMultiplier", |
| 60 | "slotGranularity" |
| 61 | ], |
| 62 | "properties": { |
| 63 | "channelSpacing": { |
| 64 | "type": "string", |
| 65 | "example": "6.25" |
| 66 | }, |
| 67 | "gridType": { |
| 68 | "type": "string", |
| 69 | "enum": ["dwdm", "cwdm", "flex"], |
| 70 | "example": "flex" |
| 71 | }, |
| 72 | "spacingMultiplier": { |
| 73 | "type": "integer", |
| 74 | "format": "int32", |
| 75 | "example": 1 |
| 76 | }, |
| 77 | "slotGranularity": { |
| 78 | "type": "integer", |
| 79 | "format": "int32", |
| 80 | "example": 1 |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | } |