Skip to content

Commit

Permalink
T7076: VPP add check for interface to xml
Browse files Browse the repository at this point in the history
  • Loading branch information
natali-rs1985 committed Jan 31, 2025
1 parent dfda2c7 commit 57490fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion interface-definitions/vpp.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,11 @@
<format>ethN</format>
<description>Interface name</description>
</valueHelp>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type ethernet</script>
</completionHelp>
<constraint>
<regex>((eth|lan)[0-9]+|(eno|ens|enp|enx).+)</regex>
<validator name="ethernet-interface"/>
</constraint>
<constraintErrorMessage>Invalid interface name</constraintErrorMessage>
</properties>
Expand Down

0 comments on commit 57490fa

Please sign in to comment.