Esempio n. 1
0
def main():
    """
    Main entry point for module execution

    :returns: the result form module invocation
    """
    module = AnsibleModule(argument_spec=Bfd_interfacesArgs.argument_spec,
                           supports_check_mode=True)

    result = Bfd_interfaces(module).execute_module()
    module.exit_json(**result)
Esempio n. 2
0
def main():
    """
    Main entry point for module execution

    :returns: the result form module invocation
    """
    required_if = [
        ("state", "merged", ("config", )),
        ("state", "replaced", ("config", )),
        ("state", "overridden", ("config", )),
        ("state", "rendered", ("config", )),
        ("state", "parsed", ("running_config", )),
    ]
    mutually_exclusive = [("config", "running_config")]

    module = AnsibleModule(
        argument_spec=Bfd_interfacesArgs.argument_spec,
        required_if=required_if,
        mutually_exclusive=mutually_exclusive,
        supports_check_mode=True,
    )

    result = Bfd_interfaces(module).execute_module()
    module.exit_json(**result)