Blame view

config/schemas/schema_device-2.0.yml 2.51 KB
d9f9c305   aklotz   troisieme commit ...
1
2
3
4
schema;schema_component_attributes:
  type: map
  required: True
  mapping:
dd54dc29   Alexis Koralewski   Updating schemas,...
5
6
    attribute:
      type: map
d9f9c305   aklotz   troisieme commit ...
7
      required: True
dd54dc29   Alexis Koralewski   Updating schemas,...
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
      mapping:
        key:
          type: str
          required: True
        # is_* are False by default
        is_editable:
          type: bool
        is_container:
          type: bool
        is_enum:
          type: bool
        value:
          type: any
          required: True
        liminf:
          type: number
        limsup:
          type: number
        label:
          type: any
        unit:
          type: any
d9f9c305   aklotz   troisieme commit ...
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
    
schema;schema_capability:
  type: map
  required: True
  mapping: 
    component:
      type: str
      required: True
    attributes:
      type: seq
      required: False # True if we're not using default values
      seq:
        - include : schema_component_attributes

# old version
# schema;schema_capability:
#   type: map
#   required: True
#   mapping:
   
schema;schema_capabilities:
  type: seq
  sequence:
    - type: map
      mapping:
        CAPABILITY:
          include: schema_capability

schema;schema_device:
  type: map
  required: True
  mapping:
72519c93   Alexis Koralewski   Updating observat...
62
63
64
    generic:
      type: str
      required: False
ee2a5e47   Alexis Koralewski   New version of ob...
65
    inventory_label:
d9f9c305   aklotz   troisieme commit ...
66
67
      type: str
      required: True
ee2a5e47   Alexis Koralewski   New version of ob...
68
    manufacturer:
d9f9c305   aklotz   troisieme commit ...
69
      type: str
72519c93   Alexis Koralewski   Updating observat...
70
      required: False
ee2a5e47   Alexis Koralewski   New version of ob...
71
    model: 
d9f9c305   aklotz   troisieme commit ...
72
      type: str
72519c93   Alexis Koralewski   Updating observat...
73
      required: False
ee2a5e47   Alexis Koralewski   New version of ob...
74
    description: 
d9f9c305   aklotz   troisieme commit ...
75
      type: str
72519c93   Alexis Koralewski   Updating observat...
76
      required: False
ee2a5e47   Alexis Koralewski   New version of ob...
77
    sn: 
d9f9c305   aklotz   troisieme commit ...
78
79
      type: text
      required: True
ee2a5e47   Alexis Koralewski   New version of ob...
80
    power:
d9f9c305   aklotz   troisieme commit ...
81
      type: map
72519c93   Alexis Koralewski   Updating observat...
82
      required: False
d9f9c305   aklotz   troisieme commit ...
83
      mapping:
ee2a5e47   Alexis Koralewski   New version of ob...
84
        voltage:
d9f9c305   aklotz   troisieme commit ...
85
          type: int
ee2a5e47   Alexis Koralewski   New version of ob...
86
        intensity: 
d9f9c305   aklotz   troisieme commit ...
87
          type: int
ee2a5e47   Alexis Koralewski   New version of ob...
88
        socket:
d9f9c305   aklotz   troisieme commit ...
89
          type: str
ee2a5e47   Alexis Koralewski   New version of ob...
90
    hostname:
dd54dc29   Alexis Koralewski   Updating schemas,...
91
      type: str
ee2a5e47   Alexis Koralewski   New version of ob...
92
    virtual_machine:
dd54dc29   Alexis Koralewski   Updating schemas,...
93
      type: bool
ee2a5e47   Alexis Koralewski   New version of ob...
94
    network_interfaces:
dd54dc29   Alexis Koralewski   Updating schemas,...
95
96
97
      type: seq
      sequence:
        - type: str
ee2a5e47   Alexis Koralewski   New version of ob...
98
    connector:
d9f9c305   aklotz   troisieme commit ...
99
100
101
      type: map
      
      mapping:
ee2a5e47   Alexis Koralewski   New version of ob...
102
        input:
d9f9c305   aklotz   troisieme commit ...
103
104
          type: str
          
ee2a5e47   Alexis Koralewski   New version of ob...
105
        output:
d9f9c305   aklotz   troisieme commit ...
106
107
          type: str
          
ee2a5e47   Alexis Koralewski   New version of ob...
108
    os: 
d9f9c305   aklotz   troisieme commit ...
109
110
      type: str
      
ee2a5e47   Alexis Koralewski   New version of ob...
111
    os_version: 
d9f9c305   aklotz   troisieme commit ...
112
113
      type: str
      
ee2a5e47   Alexis Koralewski   New version of ob...
114
    protocol:
d9f9c305   aklotz   troisieme commit ...
115
116
117
      type: map
      
      mapping:
ee2a5e47   Alexis Koralewski   New version of ob...
118
        transport:
d9f9c305   aklotz   troisieme commit ...
119
120
          type: str
          
ee2a5e47   Alexis Koralewski   New version of ob...
121
        langage: 
d9f9c305   aklotz   troisieme commit ...
122
123
          type: str
          
ee2a5e47   Alexis Koralewski   New version of ob...
124
        read: 
d9f9c305   aklotz   troisieme commit ...
125
126
          type: bool
            
ee2a5e47   Alexis Koralewski   New version of ob...
127
        write: 
d9f9c305   aklotz   troisieme commit ...
128
129
130
131
132
          type: bool
            
    CAPABILITIES:
      include: schema_capabilities
      required: True
dd54dc29   Alexis Koralewski   Updating schemas,...
133
134
135
136
137
138
139
    ATTACHED_DEVICES:
      type: seq
      sequence:
        - type: map
          mapping:
            file:
              type: str
d9f9c305   aklotz   troisieme commit ...
140
141
142
143
144
145
146

type: map
mapping:
    schema:
        type: str
        required: True
    DEVICE:
adb4a3dd   Alexis Koralewski   Updating script f...
147
      include: schema_device