Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/describeloadbalancers.pyo

ó
¡ôXc@sMddlmZddlmZddlmZdeefd„ƒYZdS(iÿÿÿÿ(t
ELBRequest(tArg(tTabifyingMixintDescribeLoadBalancerscBszeZdZedddddddƒedd	d
ddddƒgZd
ddddddddddgZd„ZRS(s%Show information about load balancerssLoadBalancerNames.membertmetavartELBtnargst*thelps(limit results to specific load balancerss--show-longtactiont
store_truetroute_tos$show all of the load balancers' infotLoadBalancerDescriptionstAvailabilityZonestBackendServerDescriptionst	InstancestListenerDescriptionstPolicyNamestAppCookieStickinessPoliciestLBCookieStickinessPoliciest
OtherPoliciestSecurityGroupstSubnetsc
CsßxØ|jdgƒD]Ä}d|jdƒ|jdƒg}|jdr|j|jdƒƒ|j|jdƒƒ|jdƒ}|dk	r.g}dAdBdCdDdEf}x?|D]7\}}|j|ƒr°|j|d||ƒq°q°Wt|ƒdkr|jddj|ƒdƒq;|jdƒn
|jdƒ|jdjd„|jdgƒDƒƒƒ|jdjd„|jdgƒDƒƒƒ|j|jdƒƒ|jdjd„|jdgƒDƒƒƒg}	xÛ|jdgƒD]Ç}
|
jd iƒ}g}dFdGdHdIdJf}x?|D]7\}}|j|ƒr(|j|d||ƒq(q(W|
jd+ƒr—|jddj|
d+ƒdƒn|	jddj|ƒdƒqîWt|	ƒdkrä|jdj|	ƒƒn
|jdƒg}
x£|jd,gƒD]}g}d(|kr:|jd-|d(ƒnd+|kr{djd.„|d+Dƒƒ}|jd/|dƒn|
jddj|ƒdƒq
Wt|
ƒdkrÈ|jdj|
ƒƒn
|jdƒ|jd0ƒpçi}|jd1ƒpüi}g|D]*}d2j|jd3ƒ|jd4ƒƒ^q}|jdj|ƒpNdƒ|jd5ƒpdi}g|D]*}d6j|jd3ƒ|jd7ƒƒ^qn}|jdj|ƒp¶dƒ|jd8ƒpÌi}|rö|jddj|ƒdƒn
|jdƒ|jd9ƒ}|rL|jd:j|jd;d<ƒ|jd=d<ƒƒƒn
|jdƒ|jd>ƒr|jddj|d>ƒdƒq|jdƒn|j|jd?ƒƒ|j|jd@ƒƒ|j|ƒGHqWdS(KNRt
LOAD_BALANCERtLoadBalancerNametDNSNamet	show_longtCanonicalHostedZoneNametCanonicalHostedZoneNameIDtHealthChecktintervaltIntervalttargettTargetttimeouttTimeoutshealthy-thresholdtHealthyThresholdsunhealthy-thresholdtUnhealthyThresholdt=it{t,t}css|]}|VqdS(N((t.0tzone((sa/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/describeloadbalancers.pys	<genexpr>DsR
css|]}|VqdS(N((R*tnet((sa/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/describeloadbalancers.pys	<genexpr>FsRtVPCIdcss|]}|jdƒVqdS(t
InstanceIdN(tget(R*tinstance((sa/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/describeloadbalancers.pys	<genexpr>HsRRtListenertprotocoltProtocolslb-porttLoadBalancerPortsinstance-protocoltInstanceProtocols
instance-porttInstancePortscert-idtSSLCertificateIdRRsinstance-port=css|]}|VqdS(N((R*tpolicy((sa/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/describeloadbalancers.pys	<genexpr>hss
policies={tPoliciesRs#{{policy-name={0},cookie-name={1}}}t
PolicyNamet
CookieNameRs){{policy-name={0},expiration-period={1}}}tCookieExpirationPeriodRtSourceSecurityGroups"{{owner-alias={0},group-name={1}}}t
OwnerAliastt	GroupNameRtCreatedTimetScheme(RR(R R!(R"R#(shealthy-thresholdR$(sunhealthy-thresholdR%(R2R3(slb-portR4(sinstance-protocolR5(s
instance-portR6(scert-idR7(R/targstappendtNonetlentjointformatttabify(tselftresulttdesctbitstchecktcheck_str_bitstelem_maptnametxmlnamet	listenerstlistenerdesctlistenertlistener_str_bitst	beserverstbedesctbeserver_str_bitstpoliciestall_policiestapp_policiesR8tapp_policy_strstlb_policiestlb_policy_strstother_policiestgroup((sa/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/describeloadbalancers.pytprint_result+s²
	 !
,	
"
	"
44!

%N(t__name__t
__module__tDESCRIPTIONRREtARGSt	LIST_TAGSRb(((sa/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/describeloadbalancers.pyRsN(t'euca2ools.commands.elasticloadbalancingRtrequestbuilderRtrequestbuilder.mixinsRR(((sa/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/describeloadbalancers.pyt<module>s
Back to Directory File Manager