create_traffic_shaper
Create a traffic shaper on an interface to control bandwidth, specifying scheduler type, bandwidth value, and unit, with options to enable and apply immediately.
Instructions
Create a traffic shaper on an interface
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| descr | No | Optional description | |
| enabled | No | Whether the shaper is enabled | |
| bandwidth | Yes | Bandwidth value | |
| interface | Yes | Interface to apply shaper to (wan, lan, opt1, etc.) | |
| scheduler | Yes | Scheduler type (HFSC, CBQ, FAIRQ, CODELQ, PRIQ) | |
| bandwidthtype | Yes | Bandwidth unit (Kb, Mb, Gb, b, %) | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||