OLD | NEW |
1 # Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/ | 1 # Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/ |
2 # | 2 # |
3 # Permission is hereby granted, free of charge, to any person obtaining a | 3 # Permission is hereby granted, free of charge, to any person obtaining a |
4 # copy of this software and associated documentation files (the | 4 # copy of this software and associated documentation files (the |
5 # "Software"), to deal in the Software without restriction, including | 5 # "Software"), to deal in the Software without restriction, including |
6 # without limitation the rights to use, copy, modify, merge, publish, dis- | 6 # without limitation the rights to use, copy, modify, merge, publish, dis- |
7 # tribute, sublicense, and/or sell copies of the Software, and to permit | 7 # tribute, sublicense, and/or sell copies of the Software, and to permit |
8 # persons to whom the Software is furnished to do so, subject to the fol- | 8 # persons to whom the Software is furnished to do so, subject to the fol- |
9 # lowing conditions: | 9 # lowing conditions: |
10 # | 10 # |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 self.timeout = int(value) | 50 self.timeout = int(value) |
51 elif name == 'UnhealthyThreshold': | 51 elif name == 'UnhealthyThreshold': |
52 self.unhealthy_threshold = int(value) | 52 self.unhealthy_threshold = int(value) |
53 else: | 53 else: |
54 setattr(self, name, value) | 54 setattr(self, name, value) |
55 | 55 |
56 def update(self): | 56 def update(self): |
57 if not self.access_point: | 57 if not self.access_point: |
58 return | 58 return |
59 | 59 |
60 new_hc = self.connection.configure_health_check(self.access_point, | 60 new_hc = self.connection.configure_health_check(self.access_point, self) |
61 self) | |
62 self.interval = new_hc.interval | 61 self.interval = new_hc.interval |
63 self.target = new_hc.target | 62 self.target = new_hc.target |
64 self.healthy_threshold = new_hc.healthy_threshold | 63 self.healthy_threshold = new_hc.healthy_threshold |
65 self.unhealthy_threshold = new_hc.unhealthy_threshold | 64 self.unhealthy_threshold = new_hc.unhealthy_threshold |
66 self.timeout = new_hc.timeout | 65 self.timeout = new_hc.timeout |
67 | 66 |
68 | 67 |
OLD | NEW |