Forum Discussion
andy_12_5042
Nimbostratus
Mar 01, 2011iterate 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
(Commo...
andy_12_5042
Nimbostratus
Mar 01, 2011so I ended up doing something like this:
stats=m.get_session_status(['temp'])
for item in stats[0]:
... print item.member.address , item.member.port , item.session_status
1.1.1.1 80 SESSION_STATUS_ENABLED
Is that the correct way to get at this.. Well I guess the fact that it works kind of answers that. So, maybe better question is there a better way. I will worry about making it pretty later. (formatted or whatever)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects