Skip to content

Feature access node console#28

Draft
ppajersk wants to merge 10 commits intoCiscoDevNet:mainfrom
ppajersk:feature-access-node-console
Draft

Feature access node console#28
ppajersk wants to merge 10 commits intoCiscoDevNet:mainfrom
ppajersk:feature-access-node-console

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