summaryrefslogtreecommitdiff
path: root/interface-definitions/snmp.xml
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-05-21 21:09:27 +0200
committerChristian Poessinger <christian@poessinger.com>2018-06-04 19:19:29 +0200
commit1d9b22e1e80f0ae9a760feccaf6c2672adf2e33a (patch)
tree077199bcdaa9221683a8938870f8f111ffa73704 /interface-definitions/snmp.xml
parent0d72ed94a46a655cbc0ff9e32d258fbee3e9f330 (diff)
downloadvyos-1x-1d9b22e1e80f0ae9a760feccaf6c2672adf2e33a.tar.gz
vyos-1x-1d9b22e1e80f0ae9a760feccaf6c2672adf2e33a.zip
T652: read SNMPv3 config into python dictionary
Diffstat (limited to 'interface-definitions/snmp.xml')
-rw-r--r--interface-definitions/snmp.xml55
1 files changed, 53 insertions, 2 deletions
diff --git a/interface-definitions/snmp.xml b/interface-definitions/snmp.xml
index 698fb34a1..4bfb61576 100644
--- a/interface-definitions/snmp.xml
+++ b/interface-definitions/snmp.xml
@@ -20,7 +20,15 @@
<children>
<leafNode name="authorization">
<properties>
- <help>Authorization type (rw or ro) (default: 'ro')</help>
+ <help>Authorization type (default: 'ro')</help>
+ <valueHelp>
+ <format>ro</format>
+ <description>read only</description>
+ </valueHelp>
+ <valueHelp>
+ <format>rw</format>
+ <description>read write</description>
+ </valueHelp>
<constraint>
<regex>(ro|rw)</regex>
</constraint>
@@ -202,10 +210,17 @@
<leafNode name="seclevel">
<properties>
<help>Defines security level</help>
+ <valueHelp>
+ <format>auth</format>
+ <description>Requests must be authenticated</description>
+ </valueHelp>
+ <valueHelp>
+ <format>priv</format>
+ <description>Enforce use of encryption</description>
+ </valueHelp>
<constraint>
<regex>(auth|priv)</regex>
</constraint>
- <multi/>
</properties>
</leafNode>
<leafNode name="view">
@@ -538,6 +553,42 @@
</node>
</children>
</tagNode>
+ <tagNode name="view">
+ <properties>
+ <help>Specifies the view with name viewname</help>
+ <constraint>
+ <regex>^[^\(\)\|\-]+$</regex>
+ </constraint>
+ <constraintErrorMessage>Illegal characters in name</constraintErrorMessage>
+ </properties>
+ <children>
+ <tagNode name="oid">
+ <properties>
+ <help>Specifies the oid</help>
+ <constraint>
+ <regex>^[0-9]+(\\.[0-9]+)*$</regex>
+ </constraint>
+ <constraintErrorMessage>OID must start from a number</constraintErrorMessage>
+ </properties>
+ <children>
+ <leafNode name="exclude">
+ <properties>
+ <help>Exclude is an optional argument</help>
+ </properties>
+ </leafNode>
+ <leafNode name="mask">
+ <properties>
+ <help>Defines a bit-mask that is indicating which subidentifiers of the associated subtree OID should be regarded as significant</help>
+ <constraint>
+ <regex>^[0-9a-f]{2}([\\.:][0-9a-f]{2})*$</regex>
+ </constraint>
+ <constraintErrorMessage>MASK is a list of hex octets, separated by '.' or ':'</constraintErrorMessage>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ </children>
+ </tagNode>
</children>
</node>
</children>