diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-22 09:45:17 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-22 10:42:32 -0800 |
commit | b17d21023482c752c490754a11450d4c41c83607 (patch) | |
tree | d7c50aed07b3698287f8db2bf8e725e78f8b6ac2 /templates/interfaces/pseudo-ethernet | |
parent | cb55706633bda6c5bd7c8391da9193ad0146002b (diff) | |
download | vyatta-cfg-quagga-b17d21023482c752c490754a11450d4c41c83607.tar.gz vyatta-cfg-quagga-b17d21023482c752c490754a11450d4c41c83607.zip |
Replace perl address validation with utility
Diffstat (limited to 'templates/interfaces/pseudo-ethernet')
-rw-r--r-- | templates/interfaces/pseudo-ethernet/node.tag/address/node.def | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/interfaces/pseudo-ethernet/node.tag/address/node.def b/templates/interfaces/pseudo-ethernet/node.tag/address/node.def index 42e79606..ad900975 100644 --- a/templates/interfaces/pseudo-ethernet/node.tag/address/node.def +++ b/templates/interfaces/pseudo-ethernet/node.tag/address/node.def @@ -1,10 +1,13 @@ multi: type: txt help: IP address -syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $VAR(@) --dev $VAR(../@)" \ - ; "Invalid IP address/prefix [$VAR(@)] for interface $VAR(../@)" + +syntax:expression: exec "/opt/vyatta/sbin/valid_address $VAR(@)" + create:sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $VAR(@) --dev $VAR(../@) + delete:sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $VAR(@) --dev $VAR(../@) + allowed: echo "dhcp <>" val_help: ipv4net; IP address and prefix length |