diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-04 15:02:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 15:02:58 +0200 |
commit | c705ced894f16d8ffb752c1f017ffcad1f0a23cc (patch) | |
tree | 47fb8a1464b478a144b18a711e5bd8aa8af26d7d /interface-definitions | |
parent | e02d8145e4f126203ff00949b7af6119658f7123 (diff) | |
parent | dbd922397dcfe6df3f0e766787d9aee69410dd58 (diff) | |
download | vyos-1x-c705ced894f16d8ffb752c1f017ffcad1f0a23cc.tar.gz vyos-1x-c705ced894f16d8ffb752c1f017ffcad1f0a23cc.zip |
Merge pull request #1267 from sever-sever/T2580
ipoe: T2580: Add pools and gateway options
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/include/accel-ppp/client-ip-pool-subnet-single.xml.i | 15 | ||||
-rw-r--r-- | interface-definitions/service_ipoe-server.xml.in | 16 |
2 files changed, 31 insertions, 0 deletions
diff --git a/interface-definitions/include/accel-ppp/client-ip-pool-subnet-single.xml.i b/interface-definitions/include/accel-ppp/client-ip-pool-subnet-single.xml.i new file mode 100644 index 000000000..e5918b765 --- /dev/null +++ b/interface-definitions/include/accel-ppp/client-ip-pool-subnet-single.xml.i @@ -0,0 +1,15 @@ +<!-- include start from accel-ppp/client-ip-pool-subnet-single.xml.i --> +<leafNode name="subnet"> + <properties> + <help>Client IP subnet (CIDR notation)</help> + <valueHelp> + <format>ipv4net</format> + <description>IPv4 address and prefix length</description> + </valueHelp> + <constraint> + <validator name="ipv4-prefix"/> + </constraint> + <constraintErrorMessage>Not a valid CIDR formatted prefix</constraintErrorMessage> + </properties> +</leafNode> +<!-- include end --> diff --git a/interface-definitions/service_ipoe-server.xml.in b/interface-definitions/service_ipoe-server.xml.in index b19acab56..1325ba10d 100644 --- a/interface-definitions/service_ipoe-server.xml.in +++ b/interface-definitions/service_ipoe-server.xml.in @@ -112,6 +112,22 @@ </children> </tagNode> #include <include/name-server-ipv4-ipv6.xml.i> + <node name="client-ip-pool"> + <properties> + <help>Client IP pools and gateway setting</help> + </properties> + <children> + <tagNode name="name"> + <properties> + <help>Pool name</help> + </properties> + <children> + #include <include/accel-ppp/gateway-address.xml.i> + #include <include/accel-ppp/client-ip-pool-subnet-single.xml.i> + </children> + </tagNode> + </children> + </node> #include <include/accel-ppp/client-ipv6-pool.xml.i> <node name="authentication"> <properties> |