mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-10-29 09:12:20 +00:00
renderer: add mbim support
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -17,7 +17,7 @@ uplink.role = "upstream";
|
||||
uplink.vlan = { id: 0 };
|
||||
uplink.metric = 1;
|
||||
|
||||
if (broadband.protocol == "wwan" && broadband['modem-type'] == "qmi") {
|
||||
if (broadband.protocol == "wwan" && index([ "qmi", "mbim", "wwan" ], broadband['modem-type']) >= 0) {
|
||||
let wwan = { };
|
||||
|
||||
wwan.protocol = 'wwan';
|
||||
|
||||
@@ -13,6 +13,8 @@ properties:
|
||||
type: string
|
||||
enum:
|
||||
- qmi
|
||||
- mbim
|
||||
- wwan
|
||||
access-point-name:
|
||||
description:
|
||||
Commonly known as APN. The name of a gateway between a mobile network
|
||||
|
||||
@@ -1302,8 +1302,8 @@ function instantiateInterfaceBroadBandWwan(location, value, errors) {
|
||||
if (type(value) != "string")
|
||||
push(errors, [ location, "must be of type string" ]);
|
||||
|
||||
if (!(value in [ "qmi" ]))
|
||||
push(errors, [ location, "must be one of \"qmi\"" ]);
|
||||
if (!(value in [ "qmi", "mbim", "wwan" ]))
|
||||
push(errors, [ location, "must be one of \"qmi\", \"mbim\" or \"wwan\"" ]);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -562,7 +562,9 @@
|
||||
"modem-type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"qmi"
|
||||
"qmi",
|
||||
"mbim",
|
||||
"wwan"
|
||||
]
|
||||
},
|
||||
"access-point-name": {
|
||||
|
||||
Reference in New Issue
Block a user