Skip to content

Improvements from user feedback #3

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

kecorbin
Copy link
Contributor

Addresses https://github.com/CiscoDevNet/pyats-labs/issues/14

As well as some other general improvement to docs/usability

import unicon

from genie.conf import Genie
from ats.topology import loader
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is intended for pyats v5.0+ -> all the imports should reflect

from pyats.topology instead... but this is a minor comment

genie_testbed = Genie.init(args.testbed)

# this gives us device_name as Device Object e.g dist1
vars()[device_name] = genie_testbed.devices[device_name]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the more appropriate way would be to do locals()

but then again - device_name could have a dash, then it's an inappropriate variable name.

i would suggest to not show this part. it will definitely confuse novice users

# unicon.logs.remove_stream_handler(logging)

# connect to the device (quietly)
import time
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imports on top or on top of if name == 'main' is good practise imo

@kecorbin
Copy link
Contributor Author

Thanks for the feedback @siming85 I actually believe that I'm going to remove pyats-intro from this repo all together, and find a home for it on it's own.

@simingy
Copy link
Contributor

simingy commented Oct 24, 2018

close the PR?

@kecorbin
Copy link
Contributor Author

kecorbin commented Oct 24, 2018 via email

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.

2 participants