summaryrefslogtreecommitdiff
path: root/templates/interfaces/loopback
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-22 09:45:17 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-22 10:42:32 -0800
commitb17d21023482c752c490754a11450d4c41c83607 (patch)
treed7c50aed07b3698287f8db2bf8e725e78f8b6ac2 /templates/interfaces/loopback
parentcb55706633bda6c5bd7c8391da9193ad0146002b (diff)
downloadvyatta-cfg-system-b17d21023482c752c490754a11450d4c41c83607.tar.gz
vyatta-cfg-system-b17d21023482c752c490754a11450d4c41c83607.zip
Replace perl address validation with utility
Diffstat (limited to 'templates/interfaces/loopback')
-rw-r--r--templates/interfaces/loopback/node.tag/address/node.def3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/interfaces/loopback/node.tag/address/node.def b/templates/interfaces/loopback/node.tag/address/node.def
index 969ecf26..c0ec9386 100644
--- a/templates/interfaces/loopback/node.tag/address/node.def
+++ b/templates/interfaces/loopback/node.tag/address/node.def
@@ -4,8 +4,7 @@ val_help: ipv4net; IPv4 address and prefix length
val_help: ipv6net; IPv6 address and prefix length
help: IP address
-syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr-set $VAR(@) --dev $VAR(../@)"; \
- "Invalid IP address/prefix [$VAR(@)] for interface $VAR(../@)"
+syntax:expression: exec "/opt/vyatta/sbin/valid_address $VAR(@)"
create:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $VAR(@) --dev $VAR(../@)"; \
"Error setting address $VAR(@) on interface $VAR(../@)"