Compare commits

...

3 Commits

Author SHA1 Message Date
jacky1100002
8a4815187f Merge branch 'main' into jumbo_frames 2024-08-12 17:32:34 +08:00
jacky_chang
5da5b090be generate corresponding json files 2024-08-12 10:32:10 +08:00
jacky_chang
4d03a432c1 support jumbo frmaes 2024-08-06 11:08:10 +08:00
5 changed files with 33 additions and 0 deletions

View File

@@ -223,3 +223,8 @@ properties:
type: array
items:
type: string
jumbo-frames:
description:
Enables Jumbo frames
type: boolean
default: false

View File

@@ -1678,6 +1678,20 @@ function instantiateSwitch(location, value, errors) {
obj.port_isolation = parsePortIsolation(location + "/port-isolation", value["port-isolation"], errors);
}
function parseJumboFrames(location, value, errors) {
if (type(value) != "bool")
push(errors, [ location, "must be of type boolean" ]);
return value;
}
if (exists(value, "jumbo-frames")) {
obj.jumbo_frames = parseJumboFrames(location + "/jumbo-frames", value["jumbo-frames"], errors);
}
else {
obj.jumbo_frames = false;
}
return obj;
}

View File

@@ -925,6 +925,11 @@
}
}
}
},
"jumbo-frames": {
"description": "Enables Jumbo frames",
"type": "boolean",
"default": false
}
}
},

View File

@@ -678,6 +678,10 @@
}
}
}
},
"jumbo-frames": {
"type": "boolean",
"default": false
}
}
},

View File

@@ -776,6 +776,11 @@
}
}
}
},
"jumbo-frames": {
"description": "Enables Jumbo frames",
"type": "boolean",
"default": false
}
}
},