Skip to content

Commit 1594c16

Browse files
authored
fix schema for extended format (#2769)
1 parent 4e7398e commit 1594c16

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

docs/manual/topo-def-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ The mgmt-net link type represents a veth pair that is connected to a container n
270270
node: <NodeA-Name> # mandatory
271271
interface: <NodeA-Interface-Name> # mandatory
272272
mac: <NodeA-Interface-Mac> # optional
273-
host-interface: <interface-name # mandatory
273+
host-interface: <interface-name> # mandatory
274274
mtu: <link-mtu> # optional
275275
vars: <link-variables> # optional (used in templating)
276276
labels: <link-labels> # optional (used in templating)

schemas/clab.schema.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,10 @@
611611
"$ref": "#/definitions/link-endpoint"
612612
},
613613
"host-interface": {
614-
"$ref": "#/definitions/mtu"
614+
"$ref": "#/definitions/link-host-interface"
615+
},
616+
"mode": {
617+
"$ref": "#/definitions/link-macvlan-mode"
615618
},
616619
"mtu": {
617620
"$ref": "#/definitions/mtu"
@@ -838,8 +841,14 @@
838841
},
839842
"link-host-interface": {
840843
"type": "string",
841-
"description": "link-scoped variables used by config engine",
842-
"markdownDescription": "link-scoped variables used by config engine"
844+
"description": "Name of the host interface",
845+
"markdownDescription": "Name of the host interface"
846+
},
847+
"link-macvlan-mode": {
848+
"type": "string",
849+
"description": "MACVLAN operating mode",
850+
"markdownDescription": "MACVLAN operating mode",
851+
"enum": ["private", "vepa", "bridge", "passthru", "source"]
843852
},
844853
"extras-config": {
845854
"type": "object",

0 commit comments

Comments
 (0)