-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(anta.cli)!: Avoid requiring username, password, inventory for the…
… get commands (#447) * Test: Add tests for get from-ansible * CI: Update pre-commit * fix `tags` for nrfu foo commands * add custom type for loglevel * add error handling for None arguments * add logs to anta.device * Cleanup anta.cli * add logs to anta.inventory * update unit tests for anta.cli * fix pallets/click#824 * update unit tests for anta.cli.nrfu * refactor cli modules * update anta.cli.check and anta.cli.debug * update cli unit tests * update unit tests for anta.cli * small fix for anta get from-ansible * refactor wrappers * consume ignore_status and ignore_error * remove shebangs * test revision and version in unit tests * fix anta nrfu --help * Test: Fix tox coloring issues * Test: Adjust pytest default logging level * Refactor(anta): Make sure test name is not truncated in table * Test: Set width of CliRunner * Update documentation * Add warning about CLI changes in documentation * change -log option to -l --------- Co-authored-by: Matthieu Tâche <mtache@arista.com>
- Loading branch information
Showing
61 changed files
with
1,675 additions
and
1,192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
# Copyright (c) 2023 Arista Networks, Inc. | ||
# Use of this source code is governed by the Apache License 2.0 | ||
# that can be found in the LICENSE file. | ||
""" | ||
Click commands to validate configuration files | ||
""" | ||
import click | ||
|
||
from anta.cli.check import commands | ||
|
||
|
||
@click.group | ||
def check() -> None: | ||
"""Commands to validate configuration files""" | ||
|
||
|
||
check.add_command(commands.catalog) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
# Copyright (c) 2023 Arista Networks, Inc. | ||
# Use of this source code is governed by the Apache License 2.0 | ||
# that can be found in the LICENSE file. | ||
""" | ||
Click commands to execute EOS commands on remote devices | ||
""" | ||
import click | ||
|
||
from anta.cli.debug import commands | ||
|
||
|
||
@click.group | ||
def debug() -> None: | ||
"""Commands to execute EOS commands on remote devices""" | ||
|
||
|
||
debug.add_command(commands.run_cmd) | ||
debug.add_command(commands.run_template) |
Oops, something went wrong.