diff options
author | Christian Breunig <christian@breunig.cc> | 2024-09-20 22:37:34 +0200 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-21 18:53:01 +0000 |
commit | 3f4e3d2a563f26e88e9ff93aca89d673e25fda45 (patch) | |
tree | a5c702ad7ab826bd513c3b424bc84d91217dedb5 | |
parent | a66122f8f17319138ace4e05d7e24cecda9ae35f (diff) | |
download | vyos-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)
-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> |