Skip to content

Commit 40559a7

Browse files
committed
schema: add ContainerEdits.NetDevices.
Signed-off-by: Krisztian Litkey <[email protected]>
1 parent 40fd6d1 commit 40559a7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

schema/defs.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"Env": {
2727
"$ref": "#/definitions/ArrayOfStrings"
2828
},
29+
"InterfaceName": {
30+
"type": "string"
31+
},
2932
"mapStringString": {
3033
"type": "object",
3134
"patternProperties": {
@@ -111,6 +114,17 @@
111114
"path"
112115
]
113116
},
117+
"NetDevice": {
118+
"type": "object",
119+
"properties": {
120+
"hostIf": {
121+
"$ref": "#/definitions/InterfaceName"
122+
},
123+
"name": {
124+
"$ref": "#/definitions/InterfaceName"
125+
},
126+
}
127+
},
114128
"containerEdits": {
115129
"type": "object",
116130
"properties": {
@@ -126,6 +140,12 @@
126140
"$ref": "#/definitions/DeviceNode"
127141
}
128142
},
143+
"netDevices": {
144+
"type": "array",
145+
"items": {
146+
"$ref": "#/definitions/NetDevice"
147+
}
148+
},
129149
"mounts": {
130150
"type": "array",
131151
"items": {

0 commit comments

Comments
 (0)