Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 5b097e0

Browse files
committed
Merge pull request #14 in TENOR/tenor from ~JOSEP_BATALLE/tenor:master to master
* commit 'aa09eba7c49a9194ad286131b7709d586d2c1dae': Updated swagger spec. Removed comment in VNFD schema
2 parents 3b150da + aa09eba commit 5b097e0

File tree

2 files changed

+62
-55
lines changed

2 files changed

+62
-55
lines changed

doc/swagger.yml

Lines changed: 61 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ paths:
5555
schema:
5656
type: array
5757
items:
58-
$ref: '#/definitions/Vnfd'
58+
$ref: 'https://raw.githubusercontent.com/T-NOVA/TeNOR/master/vnfd-validator/assets/schemas/vnfd_schema.json'
5959
default:
6060
description: unexpected error
6161
schema:
@@ -70,12 +70,12 @@ paths:
7070
description: Vnfd to add to the catalogue
7171
required: true
7272
schema:
73-
$ref: '#/definitions/NewVnfd'
73+
$ref: 'https://raw.githubusercontent.com/T-NOVA/TeNOR/master/vnfd-validator/assets/schemas/vnfd_schema.json'
7474
responses:
7575
"201":
7676
description: vnfd response
7777
schema:
78-
$ref: '#/definitions/Vnfd'
78+
$ref: 'https://raw.githubusercontent.com/T-NOVA/TeNOR/master/vnfd-validator/assets/schemas/vnfd_schema.json'
7979
default:
8080
description: unexpected error
8181
schema:
@@ -96,7 +96,7 @@ paths:
9696
"200":
9797
description: vnfd response
9898
schema:
99-
$ref: '#/definitions/Vnfd'
99+
$ref: 'https://raw.githubusercontent.com/T-NOVA/TeNOR/master/vnfd-validator/assets/schemas/vnfd_schema.json'
100100
default:
101101
description: unexpected error
102102
schema:
@@ -146,7 +146,7 @@ paths:
146146
schema:
147147
type: array
148148
items:
149-
$ref: '#/definitions/Nsd'
149+
$ref: 'https://raw.githubusercontent.com/T-NOVA/TeNOR/master/nsd-validator/assets/schemas/nsd_schema.json'
150150
default:
151151
description: unexpected error
152152
schema:
@@ -162,12 +162,12 @@ paths:
162162
description: Nsd to add to the catalogue
163163
required: true
164164
schema:
165-
$ref: '#/definitions/NewNsd'
165+
$ref: 'https://raw.githubusercontent.com/T-NOVA/TeNOR/master/nsd-validator/assets/schemas/nsd_schema.json'
166166
responses:
167167
"201":
168168
description: nsd response
169169
schema:
170-
$ref: '#/definitions/Nsd'
170+
$ref: 'https://raw.githubusercontent.com/T-NOVA/TeNOR/master/nsd-validator/assets/schemas/nsd_schema.json'
171171
default:
172172
description: unexpected error
173173
schema:
@@ -188,7 +188,7 @@ paths:
188188
"200":
189189
description: nsd response
190190
schema:
191-
$ref: '#/definitions/Nsd'
191+
$ref: 'https://raw.githubusercontent.com/T-NOVA/TeNOR/master/nsd-validator/assets/schemas/nsd_schema.json'
192192
default:
193193
description: unexpected error
194194
schema:
@@ -436,7 +436,7 @@ paths:
436436
description: unexpected error
437437
schema:
438438
$ref: '#/definitions/Error'
439-
/monitoring/{id}/monitoring-data:
439+
/instances/{id}/monitoring-data:
440440
get:
441441
tags:
442442
- Monitoring
@@ -448,11 +448,35 @@ paths:
448448
required: true
449449
type: integer
450450
format: int64
451+
- name: instance_type
452+
in: query
453+
description: Instance type 'ns' or 'vnf'
454+
required: false
455+
type: string
456+
- name: metric
457+
in: query
458+
description: Metric name
459+
required: false
460+
type: string
461+
- name: start
462+
in: query
463+
description: Start date
464+
required: false
465+
type: integer
466+
format: int64
467+
- name: end
468+
in: query
469+
description: End date
470+
required: false
471+
type: integer
472+
format: int64
451473
responses:
452474
"200":
453475
description: monitoring response
454476
schema:
455-
$ref: '#/definitions/Monitoring'
477+
type: array
478+
items:
479+
$ref: '#/definitions/Monitoring'
456480
default:
457481
description: unexpected error
458482
schema:
@@ -509,23 +533,7 @@ paths:
509533

510534

511535
definitions:
512-
513-
Vnfd:
514-
required:
515-
- id
516-
properties:
517-
id:
518-
type: integer
519-
format: int64
520-
521-
Nsd:
522-
required:
523-
- id
524-
properties:
525-
id:
526-
type: integer
527-
format: int64
528-
536+
529537
Dc:
530538
required:
531539
- id
@@ -561,39 +569,42 @@ definitions:
561569
format: int64
562570

563571
Monitoring:
564-
allOf:
565-
- required:
566-
- id
567-
properties:
568-
id:
569-
type: integer
570-
format: int64
572+
properties:
573+
metricname:
574+
type: string
575+
date:
576+
type: string
577+
unit:
578+
type: string
579+
value:
580+
type: string
571581

572582
NsInstance:
573583
required:
574584
- id
575585
properties:
576586
id:
577-
type: integer
578-
format: int64
579-
580-
NewVnfd:
581-
required:
582-
- name
583-
properties:
584-
name:
585587
type: string
586-
tag:
588+
nsd_id:
587589
type: string
588-
589-
NewNsd:
590-
required:
591-
- name
592-
properties:
593-
name:
590+
status:
591+
type: string
592+
vendor:
593+
type: string
594+
version:
594595
type: string
595-
tag:
596+
notification:
596597
type: string
598+
resource_reservation:
599+
type: array
600+
items:
601+
type: string
602+
service_deployment_flavour:
603+
type: string
604+
vnfrs:
605+
type: array
606+
items:
607+
type: string
597608

598609
NewDc:
599610
required:

vnfd-validator/assets/schemas/vnfd_schema.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,6 @@
342342
"id": "http://www.t-nova.eu/vlinks/3/qos",
343343
"type": "string"
344344
},
345-
/* "port_security_enabled":{
346-
"id": "http://www.t-nova.eu/vlinks/3/port_security_enabled",
347-
"type": "boolean"
348-
},*/
349345
"existing_net_id":{
350346
"id": "http://www.t-nova.eu/vlinks/3/existing_net_id",
351347
"type": "string"
@@ -700,4 +696,4 @@
700696
}
701697
},
702698
"additionalProperties": false
703-
}
699+
}

0 commit comments

Comments
 (0)