summaryrefslogtreecommitdiff
path: root/interface-definitions/include/radius-server.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-08 16:06:53 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-08 16:06:53 +0100
commitcc0a277e76d5567fc294e6847186c4be28921bf7 (patch)
tree161af658e1ffb30e6d9d7a5844f90ceaf69bf136 /interface-definitions/include/radius-server.xml.i
parentc5715ca7086b0687e3ee95a24ab72ab9b389b323 (diff)
downloadvyos-1x-cc0a277e76d5567fc294e6847186c4be28921bf7.tar.gz
vyos-1x-cc0a277e76d5567fc294e6847186c4be28921bf7.zip
radius: T2110: provide uniform XML include file for server configuration
Diffstat (limited to 'interface-definitions/include/radius-server.xml.i')
-rw-r--r--interface-definitions/include/radius-server.xml.i69
1 files changed, 69 insertions, 0 deletions
diff --git a/interface-definitions/include/radius-server.xml.i b/interface-definitions/include/radius-server.xml.i
new file mode 100644
index 000000000..9d0633801
--- /dev/null
+++ b/interface-definitions/include/radius-server.xml.i
@@ -0,0 +1,69 @@
+<node name="radius">
+ <properties>
+ <help>RADIUS based user authentication</help>
+ </properties>
+ <children>
+ <leafNode name="source-address">
+ <properties>
+ <help>RADIUS client source address</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>TFTP IPv4 listen address</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <tagNode name="server">
+ <properties>
+ <help>RADIUS server configuration</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>RADIUS server IPv4 address</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ </constraint>
+ </properties>
+ <children>
+ <leafNode name="disable">
+ <properties>
+ <help>Temporary disable this server</help>
+ <valueless/>
+ </properties>
+ </leafNode>
+ <leafNode name="key">
+ <properties>
+ <help>Shared secret key</help>
+ </properties>
+ </leafNode>
+ <leafNode name="port">
+ <properties>
+ <help>Authentication port</help>
+ <valueHelp>
+ <format>1-65535</format>
+ <description>Numeric IP port (default: 1812)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="timeout">
+ <properties>
+ <help>Session timeout</help>
+ <valueHelp>
+ <format>1-30</format>
+ <description>Session timeout in seconds (default: 2)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-30"/>
+ </constraint>
+ <constraintErrorMessage>Timeout must be between 1 and 30 seconds</constraintErrorMessage>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ </children>
+</node>