Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qosmngr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HAL
qosmngr
Commits
7dbeb408
Commit
7dbeb408
authored
4 years ago
by
Oskar Viljasaar
Browse files
Options
Downloads
Patches
Plain Diff
add qos ubus JSON schema
Add QoS UCI config schema
parent
8298eb34
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
schemas/ubus/qos.json
+84
-0
84 additions, 0 deletions
schemas/ubus/qos.json
schemas/uci/qos.json
+56
-0
56 additions, 0 deletions
schemas/uci/qos.json
with
140 additions
and
0 deletions
schemas/ubus/qos.json
0 → 100644
+
84
−
0
View file @
7dbeb408
{
"definitions"
:
{
"iface_t"
:
{
"title"
:
"Interface"
,
"type"
:
"string"
,
"minLength"
:
1
,
"maxLength"
:
16
}
},
"$schema"
:
"http://json-schema.org/draft-07/schema#"
,
"$id"
:
"http://example.com/root.json"
,
"type"
:
"object"
,
"title"
:
"qos"
,
"object"
:
"qos"
,
"properties"
:
{
"get_status"
:
{
"type"
:
"object"
,
"properties"
:
{
"input"
:
{
"type"
:
"object"
,
"required"
:
[
"ifname"
],
"properties"
:
{
"ifname"
:
{
"$ref"
:
"#/definitions/iface_t"
},
"qid"
:
{
"type"
:
"integer"
,
"minimum"
:
0
}
}
},
"output"
:
{
"type"
:
"object"
,
"required"
:
[
"queues"
],
"properties"
:
{
"queues"
:
{
"type"
:
"array"
,
"items"
:
{
"type"
:
"object"
,
"required"
:
[
"qid"
,
"iface"
,
"tx_packets"
,
"tx_bytes"
,
"tx_dropped_packets"
,
"tx_dropped_bytes"
],
"properties"
:
{
"qid"
:
{
"type"
:
"integer"
,
"minimum"
:
0
},
"iface"
:
{
"$ref"
:
"#/definitions/iface_t"
},
"tx_packets"
:
{
"type"
:
"integer"
,
"minimum"
:
0
},
"tx_bytes"
:
{
"type"
:
"integer"
,
"minimum"
:
0
},
"tx_dropped_packets"
:
{
"type"
:
"integer"
,
"minimum"
:
0
},
"tx_dropped_bytes"
:
{
"type"
:
"integer"
,
"minimum"
:
0
}
}
}
}
}
}
}
}
}
}
This diff is collapsed.
Click to expand it.
schemas/uci/qos.json
0 → 100644
+
56
−
0
View file @
7dbeb408
{
"qos"
:
[
{
"section"
:
"queue"
,
"description"
:
"QoS queue settings"
,
"multi"
:
true
,
"options"
:
[
{
"name"
:
"enable"
,
"type"
:
"boolean"
,
"required"
:
"no"
,
"default"
:
"false"
,
"description"
:
"Whether the specified queue configuration should be applied to it."
},
{
"name"
:
"ifname"
,
"default"
:
null
,
"description"
:
"Network interface on which the queue should be found."
,
"type"
:
"string"
},
{
"name"
:
"precedence"
,
"default"
:
0
,
"description"
:
"Precedence/priority of the queue."
,
"type"
:
"varies"
},
{
"name"
:
"scheduling"
,
"default"
:
null
,
"description"
:
"Scheduling algorithm used for the queue."
,
"type"
:
"string"
},
{
"name"
:
"rate"
,
"default"
:
0
,
"description"
:
"Specified the port shaping rate in kbps. A value of 0 disables shaping."
,
"type"
:
"integer"
},
{
"name"
:
"burst_size"
,
"default"
:
-1
,
"description"
:
"Port shaping burst size in bytes. A value of -1 disables the threshold."
,
"type"
:
"integer"
},
{
"name"
:
"weight"
,
"default"
:
1
,
"description"
:
"Specified the weight of the queue in case the WRR algorithm is used."
,
"type"
:
"integer"
}
]
}
]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment