diff options
author | Christian Breunig <christian@breunig.cc> | 2024-09-20 22:37:34 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-09-21 08:51:18 +0200 |
commit | 82ba669c2632ae554528b13efd6489ced3e39964 (patch) | |
tree | fa2ab75aaf5b894195e9e99006ab6a22e613c39e /interface-definitions | |
parent | 46a76acc85e775e87db5a82fea7bd520d7765369 (diff) | |
download | vyos-1x-82ba669c2632ae554528b13efd6489ced3e39964.tar.gz vyos-1x-82ba669c2632ae554528b13efd6489ced3e39964.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.
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/service_lldp.xml.in | 4 |
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> |