From: Tony Mack Date: Wed, 5 Jan 2011 19:48:44 +0000 (-0500) Subject: exempt federated sites from monitor policies X-Git-Tag: sfa-1.0-12~17 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d75c3d5c568bba54c7b0d498086fb04dd2d8a479;p=sfa.git exempt federated sites from monitor policies --- diff --git a/sfa/plc/slices.py b/sfa/plc/slices.py index c5a9c149..f99ddc13 100644 --- a/sfa/plc/slices.py +++ b/sfa/plc/slices.py @@ -199,12 +199,15 @@ class Slices: if sfa_peer and not reg_objects: peer_dict = {'type': 'authority', 'hrn': authority, 'peer_authority': sfa_peer, 'pointer': site_id} registry.register_peer_object(credential, peer_dict) + + # exempt federated sites from monitor policies + self.api.plshell.AddSiteTag(site_id, 'exempt_site_until', "20200101") + else: site_id = sites[0]['site_id'] remote_site_id = sites[0]['peer_site_id'] - - old_site = sites[0] - #the site is already on the remote agg. Let us update(e.g. max_slices field) it with the latest info. + old_site = sites[0] + #the site is already on the remote agg. Let us update(e.g. max_slices field) it with the latest info. self.sync_site(old_site, site, peer)