Skip to content

Instantly share code, notes, and snippets.

@vincentvdk
Created March 10, 2013 08:45
Show Gist options
  • Save vincentvdk/5127677 to your computer and use it in GitHub Desktop.
Save vincentvdk/5127677 to your computer and use it in GitHub Desktop.
for system in systems:
if system.get('name') == host:
#print system['name']
sys_id = system.get('id')
#id2 = int(idken)
print sys_id
#get the system name and print it
print "%s" % (system.get('name'))
#basechan = client.system.listBaseChannels(session, int(sys_id))
basechan = client.channel.software.listSystemChannels(session, int(sys_id))
#print basechan
#b = basechan[0]
#b = basechan[0]
chans = [item['channel_label'] for item in basechan]
print chans
#print b
#for key, value in b.items():
# if key == 'CURRENT_BASE' and value == 1:
# print "%s" % (b['LABEL'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment