Skip to content

Instantly share code, notes, and snippets.

@netmanchris
Created July 25, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netmanchris/2569a21cf0dd8099492b to your computer and use it in GitHub Desktop.
Save netmanchris/2569a21cf0dd8099492b to your computer and use it in GitHub Desktop.
Add Custom View Main function
def main():
# checks to see if the imc credentials are already available
if auth == None or url == None:
imc_creds()
view_name = create_new_view()
view_list = get_custom_views()
view_id = get_view_id(view_name)
dev_list = filter_dev_category()
add_device_to_view(dev_list, view_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment