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.basepath
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)