1 ### $Id: policy.py 15724 2009-11-11 19:52:12Z tmack $
2 ### $URL: http://svn.planet-lab.org/svn/sfa/trunk/sfa/util/policy.py $
6 from sfa.util.storage import *
7 from sfa.util.debug import log
9 class Policy(SimpleStorage):
11 def __init__(self, api):
13 path = self.api.config.SFA_CONFIG_DIR
14 filename = ".".join([self.api.interface, self.api.hrn, "policy"])
15 filepath = path + os.sep + filename
16 self.policy_file = filepath
17 default_policy = {'slice_whitelist': [],
18 'slice_blacklist': [],
21 SimpleStorage.__init__(self, self.policy_file, default_policy)