summaryrefslogtreecommitdiff
path: root/interface-definitions/snmp.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-10-25 21:03:47 +0200
committerGitHub <noreply@github.com>2021-10-25 21:03:47 +0200
commit639b2982bbcc72b962bea740a36294ab3d88cbc3 (patch)
tree52e7e47a1dca0de1b7a836963f97d6290a35a43a /interface-definitions/snmp.xml.in
parentd0dc71d7d22be9336934e2f84873f7a052a7f824 (diff)
parent45f815928976519ffba2ecadf197f725e7640852 (diff)
downloadvyos-1x-639b2982bbcc72b962bea740a36294ab3d88cbc3.tar.gz
vyos-1x-639b2982bbcc72b962bea740a36294ab3d88cbc3.zip
Merge pull request #1042 from sever-sever/T2763
snmp: T2763: Add protocol TCP for service snmp
Diffstat (limited to 'interface-definitions/snmp.xml.in')
-rw-r--r--interface-definitions/snmp.xml.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/interface-definitions/snmp.xml.in b/interface-definitions/snmp.xml.in
index b0b7768d2..949536fe7 100644
--- a/interface-definitions/snmp.xml.in
+++ b/interface-definitions/snmp.xml.in
@@ -149,6 +149,26 @@
<constraintErrorMessage>Oid must be 'route-table'</constraintErrorMessage>
</properties>
</leafNode>
+ <leafNode name="protocol">
+ <properties>
+ <help>Listen protocol for SNMP</help>
+ <completionHelp>
+ <list>udp tcp</list>
+ </completionHelp>
+ <valueHelp>
+ <format>udp</format>
+ <description>Listen protocol UDP (default)</description>
+ </valueHelp>
+ <valueHelp>
+ <format>tcp</format>
+ <description>Listen protocol TCP</description>
+ </valueHelp>
+ <constraint>
+ <regex>^(udp|tcp)$</regex>
+ </constraint>
+ </properties>
+ <defaultValue>udp</defaultValue>
+ </leafNode>
<leafNode name="smux-peer">
<properties>
<help>Register a subtree for SMUX-based processing</help>