summaryrefslogtreecommitdiff
path: root/interface-definitions/include/protocol-tcp-udp.xml.i
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-08 21:27:14 +0200
committerChristian Breunig <christian@breunig.cc>2023-05-08 22:45:53 +0200
commit1dc79cebc6d27a8f9d2f9ca9c2e0f2fd0809d940 (patch)
tree74b294e319ebad8c046756e91ce0f17a32fdcb3e /interface-definitions/include/protocol-tcp-udp.xml.i
parent43b4d30ed0298565ce7cf891fbd72c5a7484dac6 (diff)
downloadvyos-1x-1dc79cebc6d27a8f9d2f9ca9c2e0f2fd0809d940.tar.gz
vyos-1x-1dc79cebc6d27a8f9d2f9ca9c2e0f2fd0809d940.zip
syslog: T2778: migrate to get_config_dict()
Diffstat (limited to 'interface-definitions/include/protocol-tcp-udp.xml.i')
-rw-r--r--interface-definitions/include/protocol-tcp-udp.xml.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/interface-definitions/include/protocol-tcp-udp.xml.i b/interface-definitions/include/protocol-tcp-udp.xml.i
new file mode 100644
index 000000000..d7e6752ad
--- /dev/null
+++ b/interface-definitions/include/protocol-tcp-udp.xml.i
@@ -0,0 +1,22 @@
+<!-- include start from snmp/protocol.xml.i -->
+<leafNode name="protocol">
+ <properties>
+ <help>Protocol to be used (TCP/UDP)</help>
+ <completionHelp>
+ <list>udp tcp</list>
+ </completionHelp>
+ <valueHelp>
+ <format>udp</format>
+ <description>Listen protocol UDP</description>
+ </valueHelp>
+ <valueHelp>
+ <format>tcp</format>
+ <description>Listen protocol TCP</description>
+ </valueHelp>
+ <constraint>
+ <regex>(udp|tcp)</regex>
+ </constraint>
+ </properties>
+ <defaultValue>udp</defaultValue>
+</leafNode>
+<!-- include end -->