summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2009-03-16 18:07:52 -0700
committerStig Thormodsrud <stig@vyatta.com>2009-03-16 18:07:52 -0700
commitedbbcd907e745c6a682c2eb18abf137c4ed3f1fd (patch)
tree8f54be3dd06b39207fdc47e93abd32d009df13d2 /lib
parentd1cab68ead2a8d8f0af2d5f3de3f5152bd089c6c (diff)
downloadvyatta-cfg-edbbcd907e745c6a682c2eb18abf137c4ed3f1fd.tar.gz
vyatta-cfg-edbbcd907e745c6a682c2eb18abf137c4ed3f1fd.zip
isClusterIP() needs to strip off the /mask/interface/bcast.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/Misc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm
index eccd715..533a01f 100755
--- a/lib/Vyatta/Misc.pm
+++ b/lib/Vyatta/Misc.pm
@@ -213,7 +213,7 @@ sub isClusterIP {
foreach my $cluster_group (@cluster_groups) {
my @services = $vc->returnValues("cluster group $cluster_group service");
foreach my $service (@services) {
- if ($ip eq $service) {
+ if ($ip eq substr($service,0,index($service,'/'))) {
return 1;
}
}