-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: master
Are you sure you want to change the base?
Conversation
import unicon | ||
|
||
from genie.conf import Genie | ||
from ats.topology import loader |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
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. |
close the PR? |
No, still need the doc updates and fixes for the ios-samples, I’ll tack on another commit
…Sent from my iPhone
On Oct 24, 2018, at 4:37 PM, Siming Yuan <notifications@github.com<mailto:notifications@github.com>> wrote:
close the PR?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGbVSiq1xqVPxM4ex5TRaC3PJtXNy-3Vks5uoN2pgaJpZM4X2qmz>.
|
Addresses https://github.com/CiscoDevNet/pyats-labs/issues/14
As well as some other general improvement to docs/usability