-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
airtime-fairness: add ATF to the data model
Signed-off-by: John Crispin <john@phrozen.org>
- Loading branch information
Showing
12 changed files
with
345 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% | ||
let enable = airtime_fairness; | ||
if (!services.is_present("atfpolicy")) | ||
return; | ||
services.set_enabled("atfpolicy", enable); | ||
if (!enable) | ||
return; | ||
%} | ||
|
||
set atfpolicy.@defaults[0].vo_queue_weight={{ airtime_fairness.voice_weight }} | ||
set atfpolicy.@defaults[0].update_pkt_threshold={{ airtime_fairness.packet_threshold }} | ||
set atfpolicy.@defaults[0].bulk_percent_thresh={{ airtime_fairness.bulk_threshold }} | ||
set atfpolicy.@defaults[0].prio_percent_thresh={{ airtime_fairness.priority_threshold }} | ||
set atfpolicy.@defaults[0].weight_normal={{ airtime_fairness.weight_normal }} | ||
set atfpolicy.@defaults[0].weight_prio={{ airtime_fairness.weight_priority }} | ||
set atfpolicy.@defaults[0].weight_bulk={{ airtime_fairness.weight_bulk }} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ description: | |
type: string | ||
enum: | ||
- enterprise | ||
- rfc8325 | ||
- 3gpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
description: | ||
Define the default WMM behaviour of all SSIDs on the device. Each access | ||
category can be assigned a default class selector range that gets used for packet | ||
matching. It is possible to also define a list of override exceptions. | ||
type: object | ||
properties: | ||
defaults: | ||
UP0: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP1: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP2: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP3: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP4: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP5: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP6: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP7: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
exceptions: | ||
UP0: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP1: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP2: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP3: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP4: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP5: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP6: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' | ||
UP7: | ||
$ref: 'https://ucentral.io/schema/v1/globals/wireless-multimedia/class-selector/' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
description: | ||
This section describes the vlan behaviour of a logical network interface. | ||
type: object | ||
properties: | ||
voice-weight: | ||
description: | ||
Voice traffic does not get aggregated. As voice and video are both considered | ||
priotity voice is considered to have a heavier weight when calculation priority | ||
average. | ||
type: number | ||
default: 4 | ||
packet-threshold: | ||
description: | ||
The amount of packets that need to be received for a specific type of traffic | ||
before new averageg is calculated. | ||
type: number | ||
default: 100 | ||
bulk-threshold: | ||
description: | ||
This option is a percentual value. If more the X% of the traffic is bulk, we assign | ||
the bulk weight. | ||
type: number | ||
default: 50 | ||
priority-threshold: | ||
description: | ||
This option is a percentual value. If more the X% of the traffic is priority, we assign | ||
the priority weight. Priority classification will take precedence over bulk. | ||
type: number | ||
default: 30 | ||
weight-normal: | ||
description: | ||
The default ATF weight that UEs get assigned. | ||
type: number | ||
default: 256 | ||
weight-priority: | ||
description: | ||
The default ATF weight that UEs get assigned when priority traffic above the configured | ||
percentage is detected. | ||
type: number | ||
default: 394 | ||
weight-bulk: | ||
description: | ||
The default ATF weight that UEs get assigned when bulk traffic above the configured | ||
percentage is detected. | ||
type: number | ||
default: 128 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.