Actions11
Set Interface Rate Limit
AI-generatedSummary
Set rate limiting policers on a specified Juniper device interface and logical unit, optionally auto-committing the configuration changes.
Inputs
- Host (required) — Juniper device hostname or IP address to connect to.
- Port (required) — NETCONF over SSH port, default is 830.
- Interface Name (required) — Name of the interface to configure (e.g., ge-1/2/7).
- Unit Number — Logical interface unit number, default is 0.
- Policer Name (required) — Name of the policer to apply for rate limiting (e.g., li-limit100M).
- Direction — Traffic direction for rate limiting; options are 'input', 'output', or 'both'.
- Auto Commit — Whether to automatically commit the configuration changes after setting the rate limit.
- Commit Timeout (Ms) — Timeout in milliseconds to wait for the commit operation if auto commit is enabled (default 120000 ms).
Output shape
a single JSON object per input item containing the RPC operation result parsed from XML
If 'autoCommit' is enabled, the output includes both edit and commit results in XML format. Otherwise, it includes the edit result and indicates commit status as 'not-committed'. Errors during RPC or commit are propagated as node operation errors unless 'Continue On Fail' is set.
Examples
Example 1: Set input and output rate limits on interface ge-1/2/7 unit 0 using policer li-limit100M without auto commit.
Host=10.0.0.1, Port=830, Interface Name=ge-1/2/7, Unit Number=0, Policer Name=li-limit100M, Direction=both, Auto Commit=false
Example 2: Set output-only rate limit on interface ge-1/2/7 unit 0 using policer li-limit50M with automatic commit and 1-minute commit timeout.
Host=10.0.0.1, Port=830, Interface Name=ge-1/2/7, Unit Number=0, Policer Name=li-limit50M, Direction=output, Auto Commit=true, Commit Timeout=60000