mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2026-03-20 03:39:31 +00:00
Compare commits
3 Commits
lacp
...
jumbo_fram
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a4815187f | ||
|
|
5da5b090be | ||
|
|
4d03a432c1 |
@@ -223,3 +223,8 @@ properties:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
jumbo-frames:
|
||||
description:
|
||||
Enables Jumbo frames
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -925,6 +925,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"jumbo-frames": {
|
||||
"description": "Enables Jumbo frames",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -678,6 +678,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"jumbo-frames": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -776,6 +776,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"jumbo-frames": {
|
||||
"description": "Enables Jumbo frames",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user