From 39a799dac616edd4b42a1b4de2c861f248318e1f Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 22 Nov 2010 10:32:04 -0800 Subject: Use script vyatta-address to set interface Avoid the overhead of perl compilation of vyatta-interfaces for each address added. Handle the case of deleting address on deleted device cleanly. Clean up dhcpv6 script so it can be used on interfaces other than ethernet. --- templates/interfaces/pseudo-ethernet/node.tag/address/node.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/interfaces/pseudo-ethernet') diff --git a/templates/interfaces/pseudo-ethernet/node.tag/address/node.def b/templates/interfaces/pseudo-ethernet/node.tag/address/node.def index ad900975..b237e108 100644 --- a/templates/interfaces/pseudo-ethernet/node.tag/address/node.def +++ b/templates/interfaces/pseudo-ethernet/node.tag/address/node.def @@ -4,9 +4,9 @@ help: IP address syntax:expression: exec "/opt/vyatta/sbin/valid_address $VAR(@)" -create:sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $VAR(@) --dev $VAR(../@) +create: sudo /opt/vyatta/sbin/vyatta-address add $VAR(../@) $VAR(@) -delete:sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $VAR(@) --dev $VAR(../@) +delete: sudo /opt/vyatta/sbin/vyatta-address delete $VAR(../@) $VAR(@) allowed: echo "dhcp <>" -- cgit v1.2.3