Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature access node console #28

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

ppajersk
Copy link

@ppajersk ppajersk commented Apr 1, 2023

Use case: be able to access a nodes console and enter commands
Commands could be used to access a node's data, or install services on a node and configure those services
This module will use pyats

@ppajersk
Copy link
Author

ppajersk commented Apr 3, 2023

Pyats only supports python 3.10 so I'm currently running playbooks this way.
Will update the documentation to include all the relevant imports necessary to ensure this runs.

ansible-playbook playbook_name.yaml -e 'ansible_python_interpreter=/opt/homebrew/bin/python3.10'
(note: my python is installed in /opt/homebrew/bin)

@ppajersk
Copy link
Author

ppajersk commented Apr 4, 2023

Because pyats only supports python3.10

python3.10 -m pip install virl2_client
python3.10 -m pip install pyats

These commands need to be run before this feature is usable.
To run a playbook that uses the cml_node_connect module:

ansible-playbook sample-playbook.yml -e 'ansible_python_interpreter=/path/to/python3.10'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant