andy_12_5042
Mar 01, 2011Nimbostratus
iterate over return of get_session_status
I have no issues with creating something like this and then get at the value assigned to port or whatever:
>>> test =m.typefactory.create('Common.IPPortDefinition')
>>> test
(Common.IPPortDefinition){
address = None
port = None
}
>>> test.port=80
>>> test.port
80
>>> test
(Common.IPPortDefinition){
address = None
port = 80
}
However, what I cant seem to wrap my head around is this:
[[(LocalLB.PoolMember.MemberSessionStatus){
member =
(Common.IPPortDefinition){
address = "1.1.1.1"
port = 80
}
session_status = "SESSION_STATUS_ENABLED"
}]]
How would I iterate over a bunch of members like this and get just the address:port:session_status values. I know this has to be something simple but for some reason I just can quote get it. I was able to grab the session_status but not quite the right way.. Anyway thanks for any pointers...