summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-04-18 11:28:47 -0700
committerJohn Estabrook <jestabro@sentrium.io>2020-01-16 11:40:29 -0600
commite679b7827f3e3ddbb03dcdd8f49835520c21c438 (patch)
tree20bcb2275227f757c87858eed03f33eac12a2bae /interface-definitions
parent0c5658a7297dad4130d17fe6c507d41632d55a9d (diff)
downloadvyos-1x-e679b7827f3e3ddbb03dcdd8f49835520c21c438.tar.gz
vyos-1x-e679b7827f3e3ddbb03dcdd8f49835520c21c438.zip
[pppoe-server] T1341 - Adding rate-limiter for pppoe server users
- implementation for locally definied users (cherry picked from commit c1dc93391b9ec1785ab648fa7685521c85774d28)
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/pppoe-server.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/interface-definitions/pppoe-server.xml b/interface-definitions/pppoe-server.xml
index ad4522679..65f2e8ccd 100644
--- a/interface-definitions/pppoe-server.xml
+++ b/interface-definitions/pppoe-server.xml
@@ -60,6 +60,29 @@
<help>Static client IP address</help>
</properties>
</leafNode>
+ <node name="rate-limit">
+ <properties>
+ <help>Upload/Download speed limits</help>
+ </properties>
+ <children>
+ <leafNode name="upload">
+ <properties>
+ <help>Upload bandwidth limit in bits/sec</help>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="download">
+ <properties>
+ <help>Download bandwidth limit in bits/sec</help>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
</children>
</tagNode>
</children>