summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-07-24 17:33:09 +0100
committerGitHub <noreply@github.com>2022-07-24 17:33:09 +0100
commit4168e03721b2a9595de4090fddf1280d39ccce4c (patch)
tree8d91f6363eaed85980eb2a85e67457f699b4b8c0 /interface-definitions
parent91efb252a73af6f8531a196bda147dca3b0978eb (diff)
parenta5580f2fc6f76026a0e72561bf797d03fee40a8c (diff)
downloadvyos-1x-4168e03721b2a9595de4090fddf1280d39ccce4c.tar.gz
vyos-1x-4168e03721b2a9595de4090fddf1280d39ccce4c.zip
Merge pull request #1416 from sever-sever/T2763-eq
snmp: T2763: Add protocol TCP for service SNMP
Diffstat (limited to 'interface-definitions')
-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 3cb736bf7..1efe5e726 100644
--- a/interface-definitions/snmp.xml.in
+++ b/interface-definitions/snmp.xml.in
@@ -129,6 +129,26 @@
<constraintErrorMessage>Location is limited to 255 characters or less</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>