From c0d08bec068e35511ab172c2afe32ee43a62fcec Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Tue, 30 Jun 2009 12:01:32 -0700 Subject: Fix 4664: 'set failed' is returned when duplicated interface IP address is set --- scripts/vyatta-interfaces.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/vyatta-interfaces.pl') diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index 1388155..86410c1 100755 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -112,8 +112,8 @@ sub is_ip_duplicate { return unless($ipaddrs_hash{$ip}); - # if ip exists but on another interface, that is okay - return is_ip_configured($intf, $ip); + # allow dup if it's the same interface + return !is_ip_configured($intf, $ip); } sub is_up { -- cgit v1.2.3