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", |
alessio | 3039bdb | 2018-11-29 14:12:32 +0100 | [diff] [blame] | 11 | "example": "org.onosproject.optical-rest" |
Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 12 | }, |
| 13 | "ingressPoint": { |
| 14 | "type": "object", |
| 15 | "title": "ingressPoint", |
| 16 | "required": [ |
| 17 | "device", |
| 18 | "port" |
| 19 | ], |
| 20 | "properties": { |
| 21 | "device": { |
| 22 | "type": "string", |
alessio | 3039bdb | 2018-11-29 14:12:32 +0100 | [diff] [blame] | 23 | "example": "netconf:10.255.255.14:2022" |
Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 24 | }, |
| 25 | "port": { |
| 26 | "type": "string", |
alessio | 3039bdb | 2018-11-29 14:12:32 +0100 | [diff] [blame] | 27 | "example": "101" |
Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 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", |
alessio | 3039bdb | 2018-11-29 14:12:32 +0100 | [diff] [blame] | 41 | "example": "netconf:10.255.255.17:2022" |
Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 42 | }, |
| 43 | "port": { |
| 44 | "type": "string", |
alessio | 3039bdb | 2018-11-29 14:12:32 +0100 | [diff] [blame] | 45 | "example": "201" |
Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 46 | } |
| 47 | } |
| 48 | }, |
| 49 | "bidirection": { |
| 50 | "type": "boolean", |
alessio | 3039bdb | 2018-11-29 14:12:32 +0100 | [diff] [blame] | 51 | "example": false |
Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 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", |
alessio | 3039bdb | 2018-11-29 14:12:32 +0100 | [diff] [blame] | 65 | "enum": [ |
| 66 | "CHL_100GHZ", |
| 67 | "CHL_50GHZ", |
| 68 | "CHL_25GHZ", |
| 69 | "CHL_12P5GHZ", |
| 70 | "CHL_6P25GHZ" |
| 71 | ], |
alessio | 95ac1cf | 2018-08-27 18:13:55 +0200 | [diff] [blame] | 72 | "example": "CHL_50GHZ" |
Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 73 | }, |
| 74 | "gridType": { |
| 75 | "type": "string", |
alessio | 3039bdb | 2018-11-29 14:12:32 +0100 | [diff] [blame] | 76 | "enum": [ |
| 77 | "DWDM", |
| 78 | "CWDM", |
| 79 | "FLEX" |
| 80 | ], |
alessio | 95ac1cf | 2018-08-27 18:13:55 +0200 | [diff] [blame] | 81 | "example": "DWDM" |
Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 82 | }, |
| 83 | "spacingMultiplier": { |
| 84 | "type": "integer", |
| 85 | "format": "int32", |
alessio | 95ac1cf | 2018-08-27 18:13:55 +0200 | [diff] [blame] | 86 | "example": 12 |
Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 87 | }, |
| 88 | "slotGranularity": { |
| 89 | "type": "integer", |
| 90 | "format": "int32", |
alessio | 95ac1cf | 2018-08-27 18:13:55 +0200 | [diff] [blame] | 91 | "example": 4 |
Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 92 | } |
| 93 | } |
alessio | 3039bdb | 2018-11-29 14:12:32 +0100 | [diff] [blame] | 94 | }, |
| 95 | "suggestedPath": { |
| 96 | "type": "object", |
| 97 | "title": "suggestedPath", |
| 98 | "required": [ |
| 99 | "links" |
| 100 | ], |
| 101 | "properties": { |
| 102 | "links": { |
| 103 | "type": "array", |
| 104 | "title": "suggestedPath", |
| 105 | "required": [ |
| 106 | "link" |
| 107 | ], |
| 108 | "items": { |
| 109 | "type": "object", |
| 110 | "title": "link", |
| 111 | "required": [ |
| 112 | "src", |
| 113 | "dst" |
| 114 | ], |
| 115 | "properties" : { |
| 116 | "src": { |
| 117 | "type": "string", |
| 118 | "example": "netconf:10.255.255.14:2022/101" |
| 119 | }, |
| 120 | "dst": { |
| 121 | "type": "string", |
| 122 | "example": "netconf:10.255.255.9:2022/201" |
| 123 | } |
| 124 | } |
| 125 | } |
| 126 | } |
| 127 | } |
Laszlo Papp | 5bdd0e4 | 2017-10-27 10:18:21 +0100 | [diff] [blame] | 128 | } |
| 129 | } |
| 130 | } |