def _loadbalancer_member_properties_build(self):
     props = LoadbalancerMemberType()
     props.address = '127.0.0.1'
     props.protocol_port = 80
     props.weight = 1
     props.admin_state = True
     return props
 def _loadbalancer_member_properties_build(self):
     props = LoadbalancerMemberType()
     props.address = '127.0.0.1'
     props.protocol_port = 80
     props.weight = 1
     props.admin_state = True
     return props
示例#3
0
 def make_properties(self, member):
     props = LoadbalancerMemberType()
     for key, mapping in self._loadbalancer_member_type_mapping.iteritems():
         if mapping in member:
             setattr(props, key, member[mapping])
     return props