Blame view

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

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