diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2009-06-30 12:01:32 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2009-06-30 12:01:32 -0700 |
commit | c0a0ce2383a0a33b35688bbb0a52e9ce0e0966a0 (patch) | |
tree | 5d803e41d561aa2333332566101f4a010c8cfeab | |
parent | 8713ff17316e207aba3a4c792e45910d44b602f9 (diff) | |
download | vyatta-cfg-c0a0ce2383a0a33b35688bbb0a52e9ce0e0966a0.tar.gz vyatta-cfg-c0a0ce2383a0a33b35688bbb0a52e9ce0e0966a0.zip |
Fix 4664: 'set failed' is returned when duplicated interface IP address is set
-rwxr-xr-x | scripts/vyatta-interfaces.pl | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |