def __init__(self, opts): """constructor provides access to the configuration options""" super(FunctionComponent, self).__init__(opts) self.options = opts.get("fn_cisco_umbrella_inv", {}) validate_opts(self)
def _reload(self, event, opts): """Configuration options have changed, save new values""" self.options = opts.get("fn_cisco_umbrella_inv", {}) validate_opts(self) self.proxies = get_proxies(opts, self.options)