diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2009-03-16 18:07:52 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2009-03-16 18:07:52 -0700 |
commit | edbbcd907e745c6a682c2eb18abf137c4ed3f1fd (patch) | |
tree | 8f54be3dd06b39207fdc47e93abd32d009df13d2 /lib | |
parent | d1cab68ead2a8d8f0af2d5f3de3f5152bd089c6c (diff) | |
download | vyatta-cfg-edbbcd907e745c6a682c2eb18abf137c4ed3f1fd.tar.gz vyatta-cfg-edbbcd907e745c6a682c2eb18abf137c4ed3f1fd.zip |
isClusterIP() needs to strip off the /mask/interface/bcast.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Vyatta/Misc.pm | 2 |
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; } } |