summaryrefslogtreecommitdiff
path: root/interface-definitions/service_lldp.xml.in
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
commit3f4e3d2a563f26e88e9ff93aca89d673e25fda45 (patch)
treea5c702ad7ab826bd513c3b424bc84d91217dedb5 /interface-definitions/service_lldp.xml.in
parenta66122f8f17319138ace4e05d7e24cecda9ae35f (diff)
downloadvyos-1x-3f4e3d2a563f26e88e9ff93aca89d673e25fda45.tar.gz
vyos-1x-3f4e3d2a563f26e88e9ff93aca89d673e25fda45.zip
lldp: T6727: add missing input validation for interface names
There is no input CLI validation on the interface name passed to the LLDP service. (cherry picked from commit 82ba669c2632ae554528b13efd6489ced3e39964)
Diffstat (limited to 'interface-definitions/service_lldp.xml.in')
-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>