summaryrefslogtreecommitdiff
path: root/interface-definitions/include/snmp/access-mode.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-30 21:37:44 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-30 21:38:16 +0100
commit566f7f2401b79a79abe5ed9597fed325540983fa (patch)
treef6347336c27e8a890286ca473bf7a0c829f8a999 /interface-definitions/include/snmp/access-mode.xml.i
parent8d99fe401731c55ee6058d617101fcdaf1b2c47a (diff)
downloadvyos-1x-566f7f2401b79a79abe5ed9597fed325540983fa.tar.gz
vyos-1x-566f7f2401b79a79abe5ed9597fed325540983fa.zip
snmp: T4124: migrate to get_config_dict()
Diffstat (limited to 'interface-definitions/include/snmp/access-mode.xml.i')
-rw-r--r--interface-definitions/include/snmp/access-mode.xml.i23
1 files changed, 23 insertions, 0 deletions
diff --git a/interface-definitions/include/snmp/access-mode.xml.i b/interface-definitions/include/snmp/access-mode.xml.i
new file mode 100644
index 000000000..1fce2364e
--- /dev/null
+++ b/interface-definitions/include/snmp/access-mode.xml.i
@@ -0,0 +1,23 @@
+<!-- include start from snmp/access-mode.xml.i -->
+<leafNode name="mode">
+ <properties>
+ <help>Define access permission</help>
+ <completionHelp>
+ <list>ro rw</list>
+ </completionHelp>
+ <valueHelp>
+ <format>ro</format>
+ <description>Read-Only (default)</description>
+ </valueHelp>
+ <valueHelp>
+ <format>rw</format>
+ <description>read write</description>
+ </valueHelp>
+ <constraint>
+ <regex>^(ro|rw)$</regex>
+ </constraint>
+ <constraintErrorMessage>Authorization type must be either 'rw' or 'ro'</constraintErrorMessage>
+ </properties>
+ <defaultValue>ro</defaultValue>
+</leafNode>
+<!-- include end -->