7f23938cf91d46be5b251cc9e5bd8a8502265072
[smo/teiv.git] /
1 module o-ran-smo-teiv-common-yang-types {
2
3   yang-version 1.1;
4   namespace "urn:o-ran:smo-teiv-common-yang-types";
5   prefix or-teiv-types;
6
7   import o-ran-smo-teiv-common-yang-extensions {prefix or-teiv-ext; }
8
9
10   organization "ORAN";
11   contact "The Authors";
12   description
13   "Topology and Inventory common types model
14
15   Copyright (C) 2024 Ericsson
16   Modifications Copyright (C) 2024 OpenInfra Foundation Europe
17
18   This model contains re-usable data types that topology and inventory models
19   will frequently use as part of types and relationships.";
20
21   revision "2023-12-12" {
22     description "First draft.";
23     or-teiv-ext:label 0.2.0;
24   }
25
26   grouping Top_Grp_Type {
27
28     description
29       "Grouping containing the key attribute common to all types. All types
30        MUST use this grouping.";
31
32     leaf id {
33       type string;
34       description "Unique identifier of topology entities. Represents the Entity Instance Identifier. Using types MAY
35                         restrict the allowed values for keys.";
36     }
37   }
38
39   container ties-consumer-data {
40     description "This container defines the TIES consumer-data. Consumer-data may be attached to Topology Entity or
41     Topology Relation instance, outside of the declared Topology Entity or Topology Relationship's attributes.
42     This container cannot be instantiated, and it MUST NOT be augmented or deviated in any way, unless stated
43     otherwise.";
44
45     container decorators {
46       description "This container serves as extension point for applications wishing to define their own decorators.
47       This is done via augmentations.";
48     }
49
50     leaf-list classifiers {
51       description "Consumer defined tags to topology entities and relationships. The ability to apply classifier is
52       supported through TIES REST API";
53       type identityref { base classifier; }
54     }
55
56     leaf-list source-ids {
57       description "An ordered list of identities that represent the set of native source identifiers for participating
58       entities.";
59       type string;
60       ordered-by user;
61     }
62   }
63
64   identity classifier{
65     description  "The classifier is used as a base to provide all classifiers with identity";
66   }
67 }