Skip to content

Instantly share code, notes, and snippets.

@netmanchris
Created July 8, 2015 03:43
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/ee2a282bb7f01e3cd3c5 to your computer and use it in GitHub Desktop.
Save netmanchris/ee2a282bb7f01e3cd3c5 to your computer and use it in GitHub Desktop.
def print_dev_category():
categories = [{"categoryId":"0", "dev_type":"router"},
{"categoryId":"1", "dev_type":"switch"},
{"categoryId":"2", "dev_type":"server"},
{"categoryId":"3", "dev_type":"security"},
{"categoryId":"4", "dev_type":'storage' },
{"categoryId":"5", "dev_type":"wireless"},
{"categoryId":"6", "dev_type": "voice"},
{"categoryId":"7", "dev_type":'printer'},
{"categoryId":"8", "dev_type":'ups'},
{"categoryId":"9", "dev_type":"desktop"},
{"categoryId":"10", "dev_type":"other"},
{"categoryId":"11", "dev_type":"surveillance"},
{"categoryId":"12", "dev_type":"video"},
{"categoryId":"13", "dev_type":"module"},
{"categoryId":"14", "dev_type":"virtualdev"},
{"categoryId":"15", "dev_type":"Load Balancer"},
{"categoryId":"16", "dev_type":"sdn_ctrl"}
]
for i in categories:
print ("For "+i["dev_type"]+", Please press: "+i["categoryId"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment