summaryrefslogtreecommitdiff
path: root/templates/interfaces/bridge
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/bridge
parentcb55706633bda6c5bd7c8391da9193ad0146002b (diff)
downloadvyatta-cfg-system-b17d21023482c752c490754a11450d4c41c83607.tar.gz
vyatta-cfg-system-b17d21023482c752c490754a11450d4c41c83607.zip
Replace perl address validation with utility
Diffstat (limited to 'templates/interfaces/bridge')
-rw-r--r--templates/interfaces/bridge/node.tag/address/node.def7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/interfaces/bridge/node.tag/address/node.def b/templates/interfaces/bridge/node.tag/address/node.def
index 4644ad8d..cb08069e 100644
--- a/templates/interfaces/bridge/node.tag/address/node.def
+++ b/templates/interfaces/bridge/node.tag/address/node.def
@@ -2,9 +2,11 @@ multi:
priority: 320
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:
if /opt/vyatta/sbin/vyatta-bridgegroup-depedency.pl \
--bridge-notin-proposedcfg \
@@ -16,6 +18,7 @@ delete:
else
sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $VAR(@) --dev $VAR(../@)
fi
+
allowed: echo "dhcp <>"
val_help: ipv4net; IP address and prefix length
val_help: ipv6net; IPv6 address and prefix length