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

Decouple tftp server and switch template #50

Merged
merged 1 commit into from
Aug 29, 2016

Conversation

anhou
Copy link
Member

@anhou anhou commented Aug 18, 2016

need to rebase after #49 merged

  1. decouple switch template rendor codes with tftp server.js. only render common api server ip address and port.
  2. the effect is when users use non on-tftp TFTP server. user only need to change the configuration 'API_SERVER_ADDRESS' and 'API_SERVER_PORT' in cisco-poap.py

@RackHD/corecommitters @larry-dean

@yyscamper
Copy link
Contributor

Code is 👍 to me, with a little for the PR title: your code should be considered as refactor not to decouple the tftp server & template.

API_SERVER_ADDRESS = '<%=apiServerAddress%>'
API_SERVER_PORT = '<%=apiServerPort%>'

switch_profile_uri = 'http://{0}:{1}/api/1.1/profiles/switch'.format(API_SERVER_ADDRESS, API_SERVER_PORT)

Choose a reason for hiding this comment

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

minor: will it be better to use 'current' or 'common' to replace '1.1'

Copy link
Member Author

Choose a reason for hiding this comment

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

Just refactor the codes, don't intend to change the logic

@WangWinson
Copy link

👍

@anhou anhou merged commit e51de03 into RackHD:master Aug 29, 2016
@iceiilin
Copy link
Member

👍

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