def main(): module = AnsibleModule(argument_spec=VLANS_ARGUMENT_SPEC, supports_check_mode=True) pfvlan = PFSenseVlanModule(module) pfvlan.run(module.params) pfvlan.commit_changes()
def __init__(self, module): self.module = module self.pfsense = PFSenseModule(module) self.pfsense_aliases = PFSenseAliasModule(module, self.pfsense) self.pfsense_rules = PFSenseRuleModule(module, self.pfsense) self.pfsense_rule_separators = PFSenseRuleSeparatorModule( module, self.pfsense) self.pfsense_vlans = PFSenseVlanModule(module, self.pfsense)