Update openjdk version to 19 and yang2swagger version to 2.1.0
[osm/IM.git] / models / augments / exporters.yang
1 /*
2   Copyright 2020 Tata Elxsi
3
4   Licensed under the Apache License, Version 2.0 (the "License");
5   you may not use this file except in compliance with the License.
6   You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13   implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16 */
17
18 module exporters {
19   yang-version 1.1;
20   namespace "urn:etsi:osm:yang:augments:exporters";
21   prefix "exporters";
22
23   import etsi-nfv-vnfd {
24     prefix vnfd;
25   }
26
27   grouping extended-exporters-endpoints {
28     container exporters-endpoints {
29       leaf metric-path {
30         type string;
31         description "The path to scrape metric from VNF";
32       }
33       leaf metric-port {
34         type uint16;
35         description "Port to scrape metric from VNF";
36       }
37       leaf external-connection-point-ref {
38         type leafref {
39           path "/vnfd:vnfd/vnfd:ext-cpd/vnfd:id";
40         }
41         description "Representing a leafref reference to the particular external connection point";
42       }
43     }
44   }
45
46   augment "/vnfd:vnfd/vnfd:df" {
47     uses extended-exporters-endpoints;
48   }
49 }