Skip to content
Snippets Groups Projects

Few fixes for checking trunks

1 file
+ 2
4
Compare changes
  • Side-by-side
  • Inline
+ 2
4
@@ -169,14 +169,12 @@ def check_ip_trunk(params: IPTrunkCheckParams) -> PlaybookLaunchResponse:
:return: Response from the Ansible runner, including a run ID.
:rtype: :class:`lso.playbook.PlaybookLaunchResponse`
"""
extra_vars = {
"wfo_ip_trunk_json": params.subscription,
}
extra_vars = {"wfo_ip_trunk_json": params.subscription, "check": params.check_name}
# FIXME: needs to be updated when checks become available, this includes
# writing tests.
return run_playbook(
playbook_path=path.join(config_params.ansible_playbooks_root_dir, f"{params.check_name}.yaml"),
playbook_path=path.join(config_params.ansible_playbooks_root_dir, "iptrunks_checks.yaml"),
inventory=params.subscription["iptrunk"]["iptrunk_sideA_node"]["device_fqdn"],
extra_vars=extra_vars,
callback=params.callback,
Loading