| { |
| "type": "object", |
| "title": "createIntent", |
| "required": [ |
| "ingressPoint", |
| "egressPoint" |
| ], |
| "properties": { |
| "appId": { |
| "type": "string", |
| "example": "org.onosproject.optical-rest" |
| }, |
| "ingressPoint": { |
| "type": "object", |
| "title": "ingressPoint", |
| "required": [ |
| "device", |
| "port" |
| ], |
| "properties": { |
| "device": { |
| "type": "string", |
| "example": "netconf:10.255.255.14:2022" |
| }, |
| "port": { |
| "type": "string", |
| "example": "101" |
| } |
| } |
| }, |
| "egressPoint": { |
| "type": "object", |
| "title": "egressPoint", |
| "required": [ |
| "device", |
| "port" |
| ], |
| "properties": { |
| "device": { |
| "type": "string", |
| "example": "netconf:10.255.255.17:2022" |
| }, |
| "port": { |
| "type": "string", |
| "example": "201" |
| } |
| } |
| }, |
| "bidirection": { |
| "type": "boolean", |
| "example": false |
| }, |
| "signal": { |
| "type": "object", |
| "title": "signal", |
| "required": [ |
| "channelSpacing", |
| "gridType", |
| "spacingMultiplier", |
| "slotGranularity" |
| ], |
| "properties": { |
| "channelSpacing": { |
| "type": "string", |
| "enum": [ |
| "CHL_100GHZ", |
| "CHL_50GHZ", |
| "CHL_25GHZ", |
| "CHL_12P5GHZ", |
| "CHL_6P25GHZ" |
| ], |
| "example": "CHL_50GHZ" |
| }, |
| "gridType": { |
| "type": "string", |
| "enum": [ |
| "DWDM", |
| "CWDM", |
| "FLEX" |
| ], |
| "example": "DWDM" |
| }, |
| "spacingMultiplier": { |
| "type": "integer", |
| "format": "int32", |
| "example": 12 |
| }, |
| "slotGranularity": { |
| "type": "integer", |
| "format": "int32", |
| "example": 4 |
| } |
| } |
| }, |
| "suggestedPath": { |
| "type": "object", |
| "title": "suggestedPath", |
| "required": [ |
| "links" |
| ], |
| "properties": { |
| "links": { |
| "type": "array", |
| "title": "suggestedPath", |
| "required": [ |
| "link" |
| ], |
| "items": { |
| "type": "object", |
| "title": "link", |
| "required": [ |
| "src", |
| "dst" |
| ], |
| "properties" : { |
| "src": { |
| "type": "string", |
| "example": "netconf:10.255.255.14:2022/101" |
| }, |
| "dst": { |
| "type": "string", |
| "example": "netconf:10.255.255.9:2022/201" |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |