summaryrefslogtreecommitdiff
path: root/interface-definitions/pppoe-server.xml
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-04-18 11:28:47 -0700
committerhagbard <vyosdev@derith.de>2019-04-18 11:34:06 -0700
commitc1dc93391b9ec1785ab648fa7685521c85774d28 (patch)
treeef7f299490d49277003b8d34323f608616987c22 /interface-definitions/pppoe-server.xml
parentd748e526ca50f3acb98ec511fab977c4b044aea8 (diff)
downloadvyos-1x-c1dc93391b9ec1785ab648fa7685521c85774d28.tar.gz
vyos-1x-c1dc93391b9ec1785ab648fa7685521c85774d28.zip
[pppoe-server] T1341 - Adding rate-limiter for pppoe server users
- implementation for locally definied users
Diffstat (limited to 'interface-definitions/pppoe-server.xml')
-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 a0c22d53a..79bc0ebce 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>