diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-02-08 18:05:36 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-02-08 18:05:36 +0000 |
commit | f6da0e89992e82a0650cd9488aeb65f53ffa1977 (patch) | |
tree | 7c536aa7c92a4d141dc3bb844e079e9a654dd781 /interface-definitions | |
parent | 1042fc32c371a74f048ffaf9a551b5d13c227f45 (diff) | |
download | vyos-1x-f6da0e89992e82a0650cd9488aeb65f53ffa1977.tar.gz vyos-1x-f6da0e89992e82a0650cd9488aeb65f53ffa1977.zip |
T1993: PPPoE-server add section shaper and fwmark option
Extended PPPoE-server rate-limiter to avoid shaping marked resources
Often this feature needs for ISP, which provides access to some IX
or its resources.
set service pppoe-server shaper fwmark '223'
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/include/accel-ppp/shaper.xml.i | 21 | ||||
-rw-r--r-- | interface-definitions/service-pppoe-server.xml.in | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/interface-definitions/include/accel-ppp/shaper.xml.i b/interface-definitions/include/accel-ppp/shaper.xml.i new file mode 100644 index 000000000..b4f9536d2 --- /dev/null +++ b/interface-definitions/include/accel-ppp/shaper.xml.i @@ -0,0 +1,21 @@ +<!-- include start from accel-ppp/shaper.xml.i --> +<node name="shaper"> + <properties> + <help>Traffic shaper bandwidth parameters</help> + </properties> + <children> + <leafNode name="fwmark"> + <properties> + <help>Firewall mark value for traffic that excludes from shaping</help> + <valueHelp> + <format>u32:1-2147483647</format> + <description>Match firewall mark value</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-2147483647"/> + </constraint> + </properties> + </leafNode> + </children> +</node> +<!-- include end --> diff --git a/interface-definitions/service-pppoe-server.xml.in b/interface-definitions/service-pppoe-server.xml.in index db8522287..65e0f41c4 100644 --- a/interface-definitions/service-pppoe-server.xml.in +++ b/interface-definitions/service-pppoe-server.xml.in @@ -227,6 +227,7 @@ </properties> <defaultValue>replace</defaultValue> </leafNode> + #include <include/accel-ppp/shaper.xml.i> <node name="snmp"> <properties> <help>Enable SNMP</help> |