summaryrefslogtreecommitdiff
path: root/templates/protocols/static
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-18 19:41:16 +0100
committerGitHub <noreply@github.com>2023-02-18 19:41:16 +0100
commit88305cfc9b07a2c5ccfedd6c32208b56b1b29825 (patch)
treecfcb1cd4ff6c4f8437e7377b67815da8f031a21f /templates/protocols/static
parentf8f52fc4ad5f738a1b95727e407f4b6f736292b2 (diff)
downloadvyatta-cfg-quagga-88305cfc9b07a2c5ccfedd6c32208b56b1b29825.tar.gz
vyatta-cfg-quagga-88305cfc9b07a2c5ccfedd6c32208b56b1b29825.zip
T5017: fix reference to no longer existing validatort5017-equuleus-validator
The "interface-name" Python validator was removed for performance reasons. Reference new implemented validators
Diffstat (limited to 'templates/protocols/static')
-rw-r--r--templates/protocols/static/route/node.tag/dhcp-interface/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/protocols/static/route/node.tag/dhcp-interface/node.def b/templates/protocols/static/route/node.tag/dhcp-interface/node.def
index e1793c08..554f3f50 100644
--- a/templates/protocols/static/route/node.tag/dhcp-interface/node.def
+++ b/templates/protocols/static/route/node.tag/dhcp-interface/node.def
@@ -2,7 +2,7 @@ type: txt
help: DHCP interface supplying next-hop IP address
val_help: txt; DHCP interface name
allowed: sh -c "${vyos_completion_dir}/list_interfaces.py"
-syntax:expression: exec "${vyos_libexec_dir}/validate-value --exec \"${vyos_validators_dir}/interface-name \" --value \'$VAR(@)\'"; "Invalid value"
+syntax:expression: exec "${vyos_libexec_dir}/validate-value --regex \'(bond|br|dum|en|ersp|eth|gnv|lan|l2tp|l2tpeth|macsec|peth|ppp|pppoe|pptp|sstp|tun|veth|vti|vtun|vxlan|wg|wlan|wwan)[0-9]+(.\\d+)?|lo\' --exec \"${vyos_validators_dir}/file-path --lookup-path /sys/class/net --directory \" --value \'$VAR(@)\'"; "Invalid value"
create:
sudo /opt/vyatta/sbin/vyatta-update-static-route.pl --interface=$VAR(@) --route=$VAR(../@) --table=main --option=create
RIP=$(/opt/vyatta/sbin/vyatta-dhcp-helper.pl --interface=$VAR(@) --want=router)