def add_server(protocol=None, service_address=None, server_address=None, packet_forward_method='dr', weight=1, **kwargs):
 cmd = '{0} -a {1}'.format(__detect_os(), _build_cmd(protocol=protocol, service_address=service_address, server_address=server_address, packet_forward_method=packet_forward_method, weight=weight, **kwargs))
 out = __salt__['cmd.run_all'](cmd, python_shell=False)
 if out['retcode']:
  ret = out['stderr'].strip()
 else:
  ret = True
 return ret

def add_server ( protocol = None , service_address = None , server_address = None , packet_forward_method = 'dr' , weight = 1 , ** kwargs ) : cmd = '{0} -a {1}' . format ( __detect_os ( ) , _build_cmd ( protocol = protocol , service_address = service_address , server_address = server_address , packet_forward_method = packet_forward_method , weight = weight , ** kwargs ) ) out = __salt__ [ 'cmd.run_all' ] ( cmd , python_shell = False ) if out [ 'retcode' ] : ret = out [ 'stderr' ] . strip ( ) else : ret = True return ret
add a real server to a virtual service .