summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-interfaces.pl4
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 {