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 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