summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-20 22:37:34 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-09-21 18:53:01 +0000
commitf5abd6d24d18c65430140e3bc007a16908f4cf12 (patch)
tree1901c8f63298894e7738fdeb9c549bab87a30186
parentb114dcec6ac7e549c3af5349bcf2c1d45b797315 (diff)
downloadvyos-1x-f5abd6d24d18c65430140e3bc007a16908f4cf12.tar.gz
vyos-1x-f5abd6d24d18c65430140e3bc007a16908f4cf12.zip
lldp: T6727: add missing input validation for interface namesmergify/bp/sagitta/pr-4091
There is no input CLI validation on the interface name passed to the LLDP service. (cherry picked from commit 82ba669c2632ae554528b13efd6489ced3e39964)
-rw-r--r--interface-definitions/service_lldp.xml.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/interface-definitions/service_lldp.xml.in b/interface-definitions/service_lldp.xml.in
index 1a06e0cb3..51a9f9cce 100644
--- a/interface-definitions/service_lldp.xml.in
+++ b/interface-definitions/service_lldp.xml.in
@@ -23,6 +23,10 @@
<script>${vyos_completion_dir}/list_interfaces</script>
<list>all</list>
</completionHelp>
+ <constraint>
+ #include <include/constraint/interface-name.xml.i>
+ <regex>all</regex>
+ </constraint>
</properties>
<children>
#include <include/generic-disable-node.xml.i>